mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Allow LP to reset block detect and block detect lp flags to know who really came first.
This commit is contained in:
parent
48f07d9219
commit
b643b56a95
7
main.c
7
main.c
@ -2073,8 +2073,6 @@ static void restart_threads(void)
|
||||
{
|
||||
int i, stale;
|
||||
|
||||
block_changed = BLOCK_NONE;
|
||||
|
||||
/* Discard staged work that is now stale */
|
||||
stale = discard_stale();
|
||||
|
||||
@ -4115,11 +4113,6 @@ static void *watchdog_thread(void *userdata)
|
||||
mutex_unlock(&curses_lock);
|
||||
}
|
||||
|
||||
if (unlikely(work_restart[watchdog_thr_id].restart)) {
|
||||
restart_threads();
|
||||
work_restart[watchdog_thr_id].restart = 0;
|
||||
}
|
||||
|
||||
gettimeofday(&now, NULL);
|
||||
|
||||
for (i = 0; i < total_pools; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user