1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 23:37:54 +00:00
Commit Graph

5083 Commits

Author SHA1 Message Date
Con Kolivas
1bcd9a43b1 Provide a us_to_timespec helper function. 2013-08-18 00:34:01 +10:00
Con Kolivas
33bb8c7958 Use the us_to_timeval helper function in the avalon driver. 2013-08-18 00:28:30 +10:00
Con Kolivas
2278204ddd Provide a us_to_timeval helper function. 2013-08-18 00:27:33 +10:00
Con Kolivas
53beae814d Use timeval_to_spec helper in avalon driver. 2013-08-18 00:21:01 +10:00
Con Kolivas
a6b1c31742 Add helper functions to convert timespec to timeval and vice versa. 2013-08-18 00:19:47 +10:00
Chris Chua
26de6e64be simplifying buffer full check 2013-08-17 16:18:12 +10:00
Chris Chua
0b9474f3a2 forking bitburner write thread function 2013-08-17 15:36:47 +10:00
Chris Chua
be0d899b74 making sure original Avalon is unaffected by BitBurner changes 2013-08-16 17:00:56 +00:00
Chris Chua
2b932ccb81 changes to queueing strategy for BitBurner boards 2013-08-16 16:37:43 +00:00
Con Kolivas
1bb6dd406a Merge branch 'master' of github.com:ckolivas/cgminer 2013-08-16 13:57:54 +10:00
Con Kolivas
f3f939dd83 Do not poll in avalon_get_results without sleeping if we have finished parsing a full result. 2013-08-16 13:57:07 +10:00
kanoi
f3837916fd Merge pull request #476 from kanoi/master
avalon for timeout allow d='calculate it' and fix uninitialised
2013-08-15 17:14:16 -07:00
Con Kolivas
61cb05a963 Add c to ambient temperature display for avalon driver. 2013-08-16 09:55:45 +10:00
Kano
356fcb107a BTB allow up to 1400mV as per firmware limits 2013-08-15 12:00:04 +10:00
Kano
51aaf816ef avalon for timeout allow d='calculate it' and fix uninitialised 2013-08-15 10:57:02 +10:00
Con Kolivas
3fe8948629 Use cloned work when finding avalon results since another thread can discard the work item while it's in use. 2013-08-14 23:05:14 +10:00
Con Kolivas
98e338cc52 Provide a variant of find_work_bymidstate that returns a clone of the found work. 2013-08-14 23:05:13 +10:00
Con Kolivas
853f145eef Bump version number to 3.3.4 2013-08-14 10:49:40 +10:00
Con Kolivas
730d062636 Update NEWS. 2013-08-14 10:49:16 +10:00
kanoi
c9f58230a5 Merge pull request #475 from kanoi/master
API/miner.php add some % fields
2013-08-13 17:45:39 -07:00
Kano
6b62c402fa API/miner.php add some % fields 2013-08-14 10:42:52 +10:00
Con Kolivas
e95ad0479f Nonce2 stratum submission is not working with nonce2 lengths >4, revert the buggy __bin2hex function and use bin2hex. 2013-08-13 22:44:22 +10:00
Con Kolivas
dd9233f78b The write thread in avalon is only ever actually woken up by timeout so remove the write semaphore and use a simple sleep poll. 2013-08-13 17:24:01 +10:00
Con Kolivas
b2a3941ef1 Fix warning. 2013-08-13 15:36:52 +10:00
Con Kolivas
992a97a396 Interrupting reads on the avalon to start writes loses data so remove the cgsem_post in the read code. 2013-08-13 14:52:17 +10:00
Con Kolivas
1d614599a7 Add room for the null byte at the end of the nonce2 string on stratum share submission and zero the allocated ram. 2013-08-13 14:35:35 +10:00
Con Kolivas
07adb98b34 Bump version to 3.3.3 2013-08-13 06:21:14 +10:00
Con Kolivas
8876fc33d2 Update NEWS for upcoming version 3.3.3 2013-08-13 06:18:12 +10:00
Con Kolivas
c8aac74114 Only perform the bin2hex on nonce2 data if it's required for stratum submission, thereby removing the last conversion of that type from stratum work generation. 2013-08-13 06:09:42 +10:00
Con Kolivas
87ae66c7e6 Create a work data template when receiving stratum notification, allowing a simple memcpy of the merkle root avoiding more hex2bin conversions on each work generation. 2013-08-13 05:49:32 +10:00
Con Kolivas
34bc106d82 Export the workpadding char in miner.h 2013-08-13 04:57:04 +10:00
Con Kolivas
46b6b07afa Avoid a potential overflow should a pool specify a large nonce2 length with stratum. 2013-08-12 16:02:20 +10:00
Con Kolivas
0379123bc1 Avoid one more hex2bin in gen stratum work. 2013-08-12 15:32:45 +10:00
Con Kolivas
11bcf2b3fb Rename work gbt_coinbase to coinbase to be in line with pool variable name. 2013-08-12 11:40:17 +10:00
Con Kolivas
5237bf350d Perform merkle bin hex2bin on stratum notify to avoid doing it on each work generation. 2013-08-12 11:36:28 +10:00
Con Kolivas
8bc469e916 Reuse just the one pool coinbase variable in stratum, avoiding more string functions and storage in gen_stratum_work on each work generation. 2013-08-12 11:16:46 +10:00
Con Kolivas
8c8ef6ff9b Rename pool gbt_coinbase variable to coinbase to combine it with the stratum coinbase data. 2013-08-12 10:58:43 +10:00
Con Kolivas
c542e47aa3 Use a nonce2 offset variable for both gbt and stratum to consolidate requirements on work generation. 2013-08-12 10:49:38 +10:00
Con Kolivas
c48e28a8d0 Merge pull request #474 from kanoi/master
cgsem - increase information on failure
2013-08-11 17:26:42 -07:00
Kano
eca6ace2d5 util.c update quit call for new functions 2013-08-12 09:00:52 +10:00
Kano
bab9ba9603 use correct define for OSX in util.c 2013-08-12 08:58:20 +10:00
Kano
309cb2242b miner.h inline semaphores increase information on failure 2013-08-12 08:54:11 +10:00
Kano
bd3612c104 util.c expand quit to show file/func/line 2013-08-12 08:38:02 +10:00
Kano
cf30053793 Merge remote-tracking branch 'conman/master' 2013-08-12 08:35:29 +10:00
Con Kolivas
fb94dfa098 Cache as much of the gbt coinbase as possible to avoid doing unnecessary hex2bin conversion on every work generation with gbt. 2013-08-12 01:15:22 +10:00
Con Kolivas
a1052188fd We should be using a cg_wlock initially in generating stratum and gbt work before downgrading the lock. 2013-08-12 00:27:22 +10:00
Con Kolivas
9552f54f43 Add the ability to downgrade a write variant of the cglocks. 2013-08-12 00:12:28 +10:00
Con Kolivas
3e84a19cda Fix --scrypt being required before scrypt intensities on command line or not working at all via config files. 2013-08-11 15:10:27 +10:00
Con Kolivas
b423fe9de8 Cache the hex2bin of pool nonce1 in stratum, avoiding hex2bin on each work generation. 2013-08-11 14:06:17 +10:00
Con Kolivas
fef649dfef Cache the binary generation of coinbase1 and 2 on stratum, avoiding a hex2bin of coinbase1 and 2 on each work generation. 2013-08-11 13:47:46 +10:00