1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00
Commit Graph

1301 Commits

Author SHA1 Message Date
Con Kolivas
757fcb3df6 Do all hotplug_process under the write mining_thr_lock 2013-11-05 17:29:20 +11:00
Con Kolivas
2489b2aeba Fix for opt_worktime on big endian machines. 2013-11-05 16:54:29 +11:00
Con Kolivas
463e366c8d Correct set_blockdiff for big endian machines. 2013-11-05 16:53:06 +11:00
Con Kolivas
043e9d9bab Make sure cgpu exists in the restart threads loop in cases of hotplug etc. 2013-11-05 16:20:19 +11:00
Con Kolivas
c030439d0b Do get_work in fill_queue without holding other locks. 2013-11-05 12:46:34 +11:00
Con Kolivas
4a620cce44 Initialise usb after all the locks and conditionals are initialised. 2013-11-05 11:46:45 +11:00
Con Kolivas
aa9938973e Use only a trylock in flush queue to prevent deadlocks. 2013-11-05 09:08:52 +11:00
Con Kolivas
609ca9292a Scale diff for scrypt when testing for block solves. 2013-11-05 08:03:24 +11:00
Con Kolivas
c5b10a6cf3 Fix for non curses build. 2013-11-04 20:57:47 +11:00
Con Kolivas
e3ed101ce8 Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit. 2013-11-03 23:05:16 +11:00
Con Kolivas
c9b54f1502 Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup. 2013-11-03 22:41:32 +11:00
Con Kolivas
a077c9f9a4 Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work. 2013-11-03 22:41:21 +11:00
Con Kolivas
819406714a Remove discarded work from quota used. 2013-11-03 01:22:13 +11:00
Con Kolivas
c3854378e1 Display works completed in summary and API data. 2013-11-03 01:01:24 +11:00
Con Kolivas
8e1ec8bd43 Store how many work items are worked on per pool. 2013-11-03 00:52:15 +11:00
Con Kolivas
ab1e9404a7 Make each pool store its on reference for what the most current block is and fine tune management of block change in shared pool failover strategies using the information. 2013-11-03 00:47:43 +11:00
Con Kolivas
448b1fae64 Rationalise use of current_hash to a single hex string the length of the previous block and display only the first non zero hex chars of the block in the status window. 2013-11-02 22:25:45 +11:00
Con Kolivas
e6a5068470 show_hash doesn't know the size of the string so hard code the max size. 2013-11-02 21:09:37 +11:00
Con Kolivas
57d6a6f697 Remove as many initial zeroes as exist on share display, abstracting out a hash show function to use across different submission mechanisms. 2013-11-02 20:56:29 +11:00
Con Kolivas
876a83024d Sanity check for absurd target setting and divide by zero. 2013-11-02 11:20:26 +11:00
Con Kolivas
21bdcdd6b3 Abstract out conversion of a 256 bit endian number to a double, correcting errors and use it for determining any magnitude share diff. 2013-11-02 11:17:36 +11:00
Con Kolivas
759bd39f17 Avoid the extra generation of a byte flipped hash2 in struct work and directly use the LE work hash. 2013-11-02 11:07:44 +11:00
Con Kolivas
e95b42ea54 Add a sanity check to avoid divide by zero crashes in set_target 2013-11-02 08:46:13 +11:00
Con Kolivas
8abe9d4e39 Calculate diff from target accurately for all 256 bits. 2013-11-01 23:40:20 +11:00
Con Kolivas
8d61ee2455 Set a true 256bit binary target based on any diff value in set_target() 2013-11-01 23:39:09 +11:00
Con Kolivas
61297399de Provide a copy_work_noffset function for copying a work struct but changing its ntime. 2013-11-01 23:38:59 +11:00
Con Kolivas
e18ae1e222 Make calls to flush queue and flush work asynchronous wrt to the main work loops. 2013-11-01 00:28:12 +11:00
Con Kolivas
39c8491302 Share is also above target for submit noffset nonce. 2013-11-01 00:13:22 +11:00
Con Kolivas
8ed936330e Use round for displaying current pool diff. 2013-10-31 23:46:48 +11:00
Con Kolivas
eb73897ade Use round for stratum share diff display instead of floor. 2013-10-31 23:36:41 +11:00
Con Kolivas
7e59ec4f2d Use round instead of floor for displayed pool difficulty. 2013-10-31 23:29:47 +11:00
Con Kolivas
ac5b12e1a0 Allow arbitrary diffs to be tested against nonces via a test_nonce_diff function. 2013-10-31 17:15:42 +11:00
Con Kolivas
99b24c48fd Abstract out the rebuilding of hash2 in work. 2013-10-31 17:04:44 +11:00
Con Kolivas
5da3d58f6f Share is above, not below target, when it doesn't meet it. 2013-10-31 16:49:52 +11:00
Con Kolivas
774061e3f2 Minor style changes to output. 2013-10-31 12:31:34 +11:00
Con Kolivas
c4542f2b96 Merge branch 'master' into hfa
Conflicts:
	Makefile.am
	api.c
	configure.ac
	miner.h
2013-10-31 12:29:59 +11:00
Con Kolivas
b431ea4e1f Merge branch 'master' into kncminer 2013-10-31 12:09:23 +11:00
Con Kolivas
5c9f30369a Merge branch 'master' into hashfast 2013-10-29 22:25:05 +11:00
Kano
3e93b268fa klondike - change options to clock and temptarget only 2013-10-29 20:53:41 +11:00
Vitalii Demianets
53570ae8a0 KnC driver: knc-spi-fpga ASIC driver
This driver talks to KnCMiner controller via SPI

Protocol specification is available at
https://github.com/KnCMiner/jupiter-hw-docs/blob/master/fpga_spi.md
2013-10-26 23:58:52 +02:00
Vitalii Demianets
14d20837b3 'llround' is more suitable here than 'roundl' 2013-10-26 23:58:52 +02:00
Con Kolivas
36c6da8ad4 Reinstate block solve testing. 2013-10-27 00:46:47 +11:00
Con Kolivas
3f6b9d6796 Dramatically simplify the calculation of blockdiff. 2013-10-27 00:27:39 +11:00
Con Kolivas
ca91994709 Simplify the set_target function, allowing it to work properly for fractional diffs. 2013-10-26 23:16:10 +11:00
Con Kolivas
2d67bb06dc Merge branch 'master' into hashfast 2013-10-26 16:22:13 +11:00
Con Kolivas
f9d3d008da Merge pull request #509 from roybadami/master
Improvements to support for BitBurner boards
2013-10-25 20:11:24 -07:00
Con Kolivas
e1b4aa980c Merge branch 'master' into hashfast 2013-10-25 14:42:35 +11:00
Con Kolivas
3ffc3f1d78 Adjust the binary ntime data in submit_noffset_nonce even when there is no hex ntime string for eg. gbt. 2013-10-25 14:41:23 +11:00
Con Kolivas
f29f612182 Merge branch 'master' into hashfast 2013-10-25 14:35:56 +11:00
Con Kolivas
316e6d61c9 Put an entry into the work struct telling drivers how much they can roll the ntime themselves. 2013-10-25 14:34:05 +11:00