1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00
Commit Graph

1044 Commits

Author SHA1 Message Date
Con Kolivas
9650bfd6a3 Compile usbutils into avalon driver. 2013-05-27 14:58:08 +10:00
Con Kolivas
44736b3012 Make submit_nonce return a bool for whether it's a valid share or not. 2013-05-26 20:59:40 +10:00
Kano
1bb2cadfa6 thread shutdown is different on windows 2013-05-23 21:11:16 +10:00
Con Kolivas
a009f0422f Must unlock curses as well in logwin_update. 2013-05-19 21:30:16 +10:00
Con Kolivas
01fca3e756 Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays. 2013-05-19 21:28:53 +10:00
Con Kolivas
bbb797067f Check for *pth dereference on pthread_join 2013-05-19 19:34:12 +10:00
Con Kolivas
04d530f36a Make mining threads report out during work submission. 2013-05-19 16:40:35 +10:00
Con Kolivas
bb3b227b9b submit_work_async is no longer used directly by driver code. 2013-05-19 16:39:07 +10:00
Con Kolivas
894a3d64f0 Properly pthread_join miner threads on shutdown. 2013-05-19 12:55:20 +10:00
Con Kolivas
69f36358b1 Merge branch 'master' into icarus-dev 2013-05-19 11:36:18 +10:00
Con Kolivas
3a2008ac61 Use a persistent single separate thread for stratum share submission that uses workqueues since all stratum sends are serialised. 2013-05-19 11:25:45 +10:00
Con Kolivas
bd652a623e Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work(). 2013-05-18 16:57:13 +10:00
Con Kolivas
830f30ff2d Only allow the mining thread to be cancelled when it is not within driver code, making for cleaner shutdown and allowing us to pthread_join the miner threads on kill_work(). 2013-05-18 16:56:23 +10:00
Kano
fac3bf8722 add icarus to hotplug 2013-05-17 22:06:54 +10:00
Kano
9f4a3a798d Update documentation for icarus switch to USB 2013-05-17 15:05:51 +10:00
Kano
6219f977f6 switch icarus configuration to usb 2013-05-17 14:10:58 +10:00
Con Kolivas
4efe9ca82e Attribute whatever stats we can get on untracked stratum shares based on current pool diff. 2013-05-13 22:23:13 +10:00
Con Kolivas
3f24653f56 Provide a --lowmem option which does not cache shares on failed submission to prevent low memory hardware (eg Avalon) from crashing. 2013-05-13 22:10:01 +10:00
Con Kolivas
1a7a87c2a6 Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining. 2013-05-11 20:29:48 +10:00
Con Kolivas
2fb6637b5a Make set_work_target a function to set a specified char as target for use elsewhere. 2013-05-11 19:51:43 +10:00
Con Kolivas
0b6ee62cc4 Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission. 2013-05-11 19:34:44 +10:00
Con Kolivas
9a76db8db9 Regenerate the hash before checking the share diff in hashtest(). 2013-05-11 17:04:49 +10:00
Con Kolivas
79dd9dfe13 Use a scantime of 30 seconds for scrypt if none is specified. 2013-05-11 16:50:53 +10:00
Con Kolivas
a923b7d3f0 Update the write config to properly record device entries and remove disabled option. 2013-05-11 15:25:42 +10:00
Kano
6cef9f423d cgminer correct applog typing 2013-05-02 23:32:42 +10:00
Kano
8f08a327ca applog - force type checking 2013-05-02 22:50:25 +10:00
Con Kolivas
8b2118b143 Clean up summary slightly better on exit. 2013-04-28 22:00:39 +10:00
Con Kolivas
3d835fc3e9 Fix build and distdir. 2013-04-22 19:28:50 +10:00
Con Kolivas
f4b2790761 Remove all CPU mining code. 2013-04-22 14:35:43 +10:00
Con Kolivas
856aa49c9c Use copy_time helper throughout cgminer.c 2013-04-22 10:59:55 +10:00
Con Kolivas
d2abaa8317 Provide wrappers for commonly used timer routines with API stats. 2013-04-22 10:49:10 +10:00
Con Kolivas
170a4aeb26 Avoid one cgtime call in sole_hash_work. 2013-04-22 10:00:34 +10:00
Con Kolivas
4597c0a17e Provide endian_flipX functions to avoid special casing big endian in cgminer.c 2013-04-22 09:35:48 +10:00
Con Kolivas
8d81f1d207 Provide a flip128 helper to simplify big endian flipping. 2013-04-22 09:28:06 +10:00
Con Kolivas
c351f8d8d3 Use flip helpers to simplify code for calculation of midstate. 2013-04-22 09:23:13 +10:00
Con Kolivas
f50ae46850 Use flip32 function instead of open coding it in gen_stratum_work. 2013-04-22 09:08:51 +10:00
Con Kolivas
bb964b4b99 Replace gettimeofday usage in cgminer.c with cgtime 2013-04-21 19:08:30 +10:00
ckolivas
5315838d2d Restart threads on the rare chance we found the block ourselves. 2013-04-19 09:19:05 +10:00
Con Kolivas
a3bbe0e116 Set last device valid work on adding device. 2013-04-18 18:19:35 +10:00
Con Kolivas
3fa4a9f55f Increment last device valid work count in submit_nonce to cover scrypt. 2013-04-18 17:58:58 +10:00
Con Kolivas
c1ff90a7ab Do testing for HW errors on submit nonce for both scrypt and sha. 2013-04-18 15:07:32 +10:00
Con Kolivas
6b714dd431 Increment hardware error count from the one site. 2013-04-18 14:47:46 +10:00
Con Kolivas
a6250fbb96 Rename scrypt regenhash function for consistency. 2013-04-18 12:26:32 +10:00
Con Kolivas
daea9c95a7 Add new best share info to verbose logging. 2013-04-18 12:11:41 +10:00
Con Kolivas
1a7fc4e9cc Add notice for when network diff is changed. 2013-04-18 10:47:02 +10:00
Con Kolivas
b4bc5e2b13 Check for work restart after disable in the hash queued work loop since it may be a long time before we re-enable a device. 2013-04-16 22:57:55 +10:00
Con Kolivas
d41d210b03 Set device_diff for queued work or there will be no diff1 share count. 2013-04-15 23:01:08 +10:00
Con Kolivas
67ebf45c19 Avoid applog under cg_wlock. 2013-04-15 11:44:19 +10:00
Con Kolivas
8d22ca1ac1 Put spacing around locking code for clarity. 2013-04-15 11:42:16 +10:00
Con Kolivas
3209c113d1 Avoid applog under pool_lock. 2013-04-15 11:34:21 +10:00