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

3736 Commits

Author SHA1 Message Date
Con Kolivas
1468feb0d3 Find the first usable pool in preference to the current pool in select_pool for work. 2013-03-07 18:13:25 +11:00
Con Kolivas
ade8c6c79c Add a pool_unusable function which checks if a pool is stratum but not active to use within switch_pools. 2013-03-07 18:00:15 +11:00
Con Kolivas
81567e5157 Perform pool resus on pools that were not set as the initial pool at startup. 2013-03-07 17:00:23 +11:00
Con Kolivas
c7c21e6c37 Revert "Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools."
This reverts commit 370e8fc862.
2013-03-07 16:56:03 +11:00
Con Kolivas
370e8fc862 Clear the pool idle flag only on the pool chosen at startup, allowing it to be cleared by the watchpool thread for the other pools. 2013-03-07 16:49:16 +11:00
Con Kolivas
e501db143d Allow pools to be resuscitated on first startup by the watchpool thread. 2013-03-07 16:45:25 +11:00
Con Kolivas
5221662557 Check all pools simultaneously at startup switching to the first alive one to speed up startup. 2013-03-07 16:39:49 +11:00
Con Kolivas
c9b4f5c757 Revert "Cope with out of order messages coming in upon attempting to auth_stratum."
This reverts commit 237f67c617.
2013-03-07 15:34:44 +11:00
Con Kolivas
ed903ddf31 Clear just the socket buffer when we don't care what is left in a stratum socket. 2013-03-07 15:13:32 +11:00
Con Kolivas
fbb25c4ba5 Clear the stratum socket whenever we are closing it since the buffer is going to be reused. 2013-03-07 15:10:38 +11:00
Con Kolivas
12553004c5 Do not continue work from a stratum pool where the connection has been interrupted. 2013-03-07 14:40:48 +11:00
Con Kolivas
0810212c9a Reset stratum_notify flag on suspend_stratum as well. 2013-03-07 14:20:33 +11:00
Con Kolivas
07ae6172cc Close any sockets opened if we fail to initiate stratum but have opened the socket. 2013-03-07 14:15:28 +11:00
Con Kolivas
6875dc46b6 Close any existing stratum socket if we are attempting to restart stratum so the pool knows the connection has gone. 2013-03-07 13:50:25 +11:00
Con Kolivas
bba99bd88c Show mechanism of stratum interruption if select times out. 2013-03-07 13:39:00 +11:00
Con Kolivas
011ea64096 Make stratum connection interrupted message higher priority to be visible at normal logging levels. 2013-03-07 12:42:44 +11:00
Con Kolivas
237f67c617 Cope with out of order messages coming in upon attempting to auth_stratum. 2013-03-07 11:36:04 +11:00
Con Kolivas
96ae17a466 Merge pull request #398 from kanoi/bflsc
API use control_lock when switching pools + Setup BFLSC support + API add 'Network Difficulty' to 'coin'
2013-03-06 15:51:33 -08:00
Kano
f8b4b470db API-README update for ASIC changes 2013-03-07 08:49:05 +11:00
Con Kolivas
e3151799b6 Implement client.show_message support for stratum. 2013-03-07 08:42:14 +11:00
Kano
0eafc8b9fe API add 'Network Difficulty' to 'coin' 2013-03-07 07:40:05 +11:00
Kano
540f3e89bc Setup BFLSC support 2013-03-07 00:00:31 +11:00
Kano
419083a7d2 API use control_lock when switching pools 2013-03-06 21:19:02 +11:00
Con Kolivas
0be6e9e76c Make sure to retry only once with noresume support for stratum. 2013-03-06 21:01:46 +11:00
Con Kolivas
f4892a43a2 Merge pull request #397 from kanoi/bflsc
usbutils.c copy full size to 'Last Command'
2013-03-05 22:54:51 -08:00
ckolivas
386ea2dffb Instead of keeping track of when the last work item was generated to keep stratum connections open, keep them open if any shares have been submitted awaiting a response. 2013-03-06 14:34:17 +11:00
Kano
cb49f3cbb7 usbutils.c copy full size to 'Last Command' 2013-03-06 00:24:02 +11:00
Con Kolivas
82fce46633 Merge pull request #395 from kanoi/bflsc
configure - set USE_USBUTILS when usbutils is required and use it in the code
2013-03-05 02:47:19 -08:00
Kano
2f6660e83f configure - set USE_USBUTILS when usbutils is required and use it in the code 2013-03-05 18:33:43 +11:00
Con Kolivas
016f065f69 Clear last pool work on switching pools if the current pool supports local work generation or we are in failover only mode. 2013-03-05 11:16:20 +11:00
Con Kolivas
2fe415f42e Merge pull request #394 from kanoi/main
Last Valid Work + usb_cleanup() + dev_width fix + --hotplug/API
2013-03-04 12:58:13 -08:00
Con Kolivas
c45096d839 Merge pull request #381 from denis2342/hw_errors
several changes to avoid the display of hw errors
2013-03-04 12:56:12 -08:00
Kano
120e9a072d make rw locks: mining_thr_lock and devices_lock 2013-03-04 22:46:34 +11:00
Kano
f1ab8ea9e7 Release MMQ device only once (not 4 times) 2013-03-04 21:18:42 +11:00
Kano
1bfc7120f7 README --hotplug 2013-03-04 18:02:35 +11:00
Kano
f8e7012d73 api.c fix MSG overlap 2013-03-04 17:29:58 +11:00
Kano
be8cadbc46 Hotplug - allow setting interval via --hotplug or API 2013-03-04 17:26:11 +11:00
Kano
97cb77d18a curses - fix - put a dev_width inside #ifdef 2013-03-04 14:06:15 +11:00
Kano
aed1e516db usb_cleanup() use correct locking mechanism 2013-03-04 10:16:44 +11:00
Kano
e35e8ae135 Implement and use usb_cleanup() on shutdown or restart 2013-03-04 09:45:07 +11:00
Kano
5d3faba603 miner.php report 'Last Valid Work' as time before request 2013-03-03 20:30:44 +11:00
Kano
41f099edff API - return Last Valid Work 2013-03-03 19:53:34 +11:00
Kano
c14f2ec642 API V1.25 - add 'Last Valid Work' time for each device 2013-03-03 19:33:20 +11:00
Con Kolivas
59261a8f1d Merge pull request #393 from kanoi/main
api -> drv
2013-03-02 21:40:55 -08:00
Kano
cc3869e5ce api -> drv 2013-03-03 16:38:02 +11:00
Con Kolivas
0601f361cc Merge pull request #392 from kanoi/main
USB linux rules for libusb to give privs to non-root users + FPGA-README Zadig hints + ZTX bug set missing drv_id
2013-03-02 21:23:01 -08:00
Kano
00489f4c14 ZTX bug set missing drv_id 2013-03-03 16:04:47 +11:00
Kano
47c6f91ccf FPGA-README Zadig hints 2013-03-03 15:17:15 +11:00
Kano
8800da6a38 USB linux rules for libusb to give privs to non-root users 2013-03-03 14:21:24 +11:00
Con Kolivas
cb9523dab9 Fix grammo 2013-03-03 12:27:06 +11:00