1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 06:18:06 +00:00
Commit Graph

5611 Commits

Author SHA1 Message Date
Con Kolivas
ccb742399f Use an int for usb_read/write to identify overruns. 2013-11-03 22:40:05 +11:00
Con Kolivas
1f22746243 Use the callback timeout as a safety mechanism only on windows. 2013-11-03 22:40:05 +11:00
Con Kolivas
4c0b643864 Instead of using complicated sleeps to emulate characters per second on usb writes, submit only as many characters as can be transferred per usb poll of 1ms, and use timeouts in bulk transfers, cancelling transfers only as a failsafe. 2013-11-03 22:40:05 +11:00
Con Kolivas
efc605ffd3 Ignore iManufacturer from bitfury devices to support bluefury as well as redfury. 2013-11-03 19:42:33 +11:00
Con Kolivas
ef0b7d3b5b Add more debugging info for when usb details don't match. 2013-11-03 19:16:40 +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
b764862128 Update uthash to latest. 2013-11-02 21:54:51 +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
6e63eebfe1 Add missing endian swap functions for 64bits. 2013-11-02 12:41:20 +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
25d4f16727 Add the ability to add uint8 and uint16 entities to api data. 2013-10-31 16:37:43 +11:00
Con Kolivas
eaaf34a19d Use a non blocking connect with a 1 second select timeout when initiating stratum to allow us to iterate over all IPs returned by getaddrinfo in round robin DNS pools. 2013-10-31 15:07:26 +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
Adrian Port
178c9a0cc8 Revert two different hash_sequence(_head)'s to one variable, use HF_SEQUENCE_DISTANCE in both places 2013-10-31 12:07:59 +11:00
Adrian Port
fdcac44218 Remove duplicate HF_SEQUENCE_DISTANCE() macro, and duplicate hash_sequence from info structure 2013-10-31 12:07:59 +11:00
Adrian Port
d6e9a5ac18 Change SEQUENCE_DISTANCE() macro to HF_SEQUENCE_DISTANCE() 2013-10-31 12:07:59 +11:00
Adrian Port
065054f658 Structure changes for OP_NONCE, add big endian header 2013-10-31 12:07:59 +11:00
Kano
f562174a39 klondike - initialise stat_lock 2013-10-30 11:44:52 +11:00
Kano
75230ed808 klondike - better to unlock locks than to lock them twice :) 2013-10-29 22:30:34 +11:00
Con Kolivas
5c9f30369a Merge branch 'master' into hashfast 2013-10-29 22:25:05 +11:00
Con Kolivas
b542f5235b Add copyright notice to knc driver. 2013-10-29 22:08:00 +11:00
Con Kolivas
6e3bee0d5b Trivial style changes to knc driver. 2013-10-29 21:58:55 +11:00
Vitalii Demianets
f75fdbbbbe Improve performance of work generation by optimizing hex2bin and bin2hex
sprintf is a very expensive function, do direct translation instead.
2013-10-29 21:56:08 +11:00
Kano
3e93b268fa klondike - change options to clock and temptarget only 2013-10-29 20:53:41 +11:00
Kano
5ce372e5df klondike - fix another uninit dev warning 2013-10-29 20:48:21 +11:00
Kano
b4eb870af0 klondike - downgrade 'late update' but add an idle detect - and correct error levels 2013-10-29 19:37:26 +11:00
Kano
4153d907d4 klondike - fix isc uninit warning 2013-10-29 19:17:44 +11:00
Con Kolivas
d3f33888fd Merge branch 'master' into kncminer 2013-10-28 15:26:58 +11:00
Con Kolivas
e684358828 Use a mutex to protect data in the knc structure, to prevent loading more work during a flush, and unlock and return to main between calls to get_queued_work. 2013-10-28 14:40:23 +11:00