mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
Reset the work->longpoll flag where it will affect stratum work items as well.
This commit is contained in:
parent
1d7e19f2f2
commit
ad2ed57f12
@ -3573,7 +3573,6 @@ static bool test_work_current(struct work *work)
|
|||||||
if (work->longpoll) {
|
if (work->longpoll) {
|
||||||
applog(LOG_NOTICE, "%sLONGPOLL from pool %d detected new block",
|
applog(LOG_NOTICE, "%sLONGPOLL from pool %d detected new block",
|
||||||
work->gbt ? "GBT " : "", work->pool->pool_no);
|
work->gbt ? "GBT " : "", work->pool->pool_no);
|
||||||
work->longpoll = false;
|
|
||||||
} else if (have_longpoll)
|
} else if (have_longpoll)
|
||||||
applog(LOG_NOTICE, "New block detected on network before longpoll");
|
applog(LOG_NOTICE, "New block detected on network before longpoll");
|
||||||
else
|
else
|
||||||
@ -3581,7 +3580,6 @@ static bool test_work_current(struct work *work)
|
|||||||
}
|
}
|
||||||
restart_threads();
|
restart_threads();
|
||||||
} else if (work->longpoll) {
|
} else if (work->longpoll) {
|
||||||
work->longpoll = false;
|
|
||||||
if (work->pool == current_pool()) {
|
if (work->pool == current_pool()) {
|
||||||
applog(LOG_NOTICE, "%sLONGPOLL from pool %d requested work restart",
|
applog(LOG_NOTICE, "%sLONGPOLL from pool %d requested work restart",
|
||||||
work->gbt ? "GBT " : "", work->pool->pool_no);
|
work->gbt ? "GBT " : "", work->pool->pool_no);
|
||||||
@ -3589,6 +3587,7 @@ static bool test_work_current(struct work *work)
|
|||||||
restart_threads();
|
restart_threads();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
work->longpoll = false;
|
||||||
out_free:
|
out_free:
|
||||||
free(hexstr);
|
free(hexstr);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user