mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
work->longpoll is reset across test_work_current so we need to recheck what pool it belongs to.
This commit is contained in:
parent
03abb70467
commit
501e35a0e6
@ -3810,7 +3810,7 @@ static void convert_to_work(json_t *val, bool rolltime, struct pool *pool)
|
|||||||
work->rolltime = rolltime;
|
work->rolltime = rolltime;
|
||||||
|
|
||||||
/* Only flag this as longpoll work if the pool is the current pool */
|
/* Only flag this as longpoll work if the pool is the current pool */
|
||||||
if (pool == current_pool())
|
if (pool == cp)
|
||||||
work->longpoll = true;
|
work->longpoll = true;
|
||||||
|
|
||||||
/* We'll be checking this work item twice, but we already know it's
|
/* We'll be checking this work item twice, but we already know it's
|
||||||
@ -3820,7 +3820,7 @@ static void convert_to_work(json_t *val, bool rolltime, struct pool *pool)
|
|||||||
test_work_current(work);
|
test_work_current(work);
|
||||||
|
|
||||||
/* Don't use as work if we have failover-only enabled */
|
/* Don't use as work if we have failover-only enabled */
|
||||||
if (!work->longpoll && opt_fail_only) {
|
if (pool != cp && opt_fail_only) {
|
||||||
free_work(work);
|
free_work(work);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user