ckolivas
|
a02dc6f411
Add a get and queue helper work function.
|
12 years ago |
Con Kolivas
|
c57b15196a
Reset the work_restart bool after the scanwork loop in case the driver flushes work synchronously.
|
12 years ago |
Con Kolivas
|
3a71ade69a
Only check for the stratum clean message if we have had a valid message.
|
12 years ago |
Con Kolivas
|
72424388fe
Get rid of the stage thread since all work can be asynchronously added now via hash_push anyway.
|
12 years ago |
Con Kolivas
|
34f23f691b
Break out of the hash work loops when a failure is detected instead of dropping into mt disable.
|
12 years ago |
ckolivas
|
8416a4dbf1
Fix build for no libcurl
|
12 years ago |
Con Kolivas
|
757fcb3df6
Do all hotplug_process under the write mining_thr_lock
|
12 years ago |
Con Kolivas
|
2489b2aeba
Fix for opt_worktime on big endian machines.
|
12 years ago |
Con Kolivas
|
463e366c8d
Correct set_blockdiff for big endian machines.
|
12 years ago |
Con Kolivas
|
043e9d9bab
Make sure cgpu exists in the restart threads loop in cases of hotplug etc.
|
12 years ago |
Con Kolivas
|
c030439d0b
Do get_work in fill_queue without holding other locks.
|
12 years ago |
Con Kolivas
|
4a620cce44
Initialise usb after all the locks and conditionals are initialised.
|
12 years ago |
Con Kolivas
|
aa9938973e
Use only a trylock in flush queue to prevent deadlocks.
|
12 years ago |
Con Kolivas
|
609ca9292a
Scale diff for scrypt when testing for block solves.
|
12 years ago |
Con Kolivas
|
c5b10a6cf3
Fix for non curses build.
|
12 years ago |
Con Kolivas
|
e3ed101ce8
Force unlocking of the console lock on restart to avoid corrupting the console state when we finally quit.
|
12 years ago |
Con Kolivas
|
c9b54f1502
Never wait indefinitely for a pthread conditional in the hash_pop loop in case the work scheduler misses the last wakeup.
|
12 years ago |
Con Kolivas
|
a077c9f9a4
Make hash_pop signal the work scheduler each time it waits on the conditional that it should look for more work.
|
12 years ago |
Con Kolivas
|
819406714a
Remove discarded work from quota used.
|
12 years ago |
Con Kolivas
|
c3854378e1
Display works completed in summary and API data.
|
12 years ago |
Con Kolivas
|
8e1ec8bd43
Store how many work items are worked on per pool.
|
12 years ago |
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.
|
12 years ago |
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.
|
12 years ago |
Con Kolivas
|
e6a5068470
show_hash doesn't know the size of the string so hard code the max size.
|
12 years ago |
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.
|
12 years ago |
Con Kolivas
|
876a83024d
Sanity check for absurd target setting and divide by zero.
|
12 years ago |
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.
|
12 years ago |
Con Kolivas
|
759bd39f17
Avoid the extra generation of a byte flipped hash2 in struct work and directly use the LE work hash.
|
12 years ago |
Con Kolivas
|
e95b42ea54
Add a sanity check to avoid divide by zero crashes in set_target
|
12 years ago |
Con Kolivas
|
8abe9d4e39
Calculate diff from target accurately for all 256 bits.
|
12 years ago |