mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 22:14:36 +00:00
Use the longpoll provided work to test_work_current since we know it's almost certainly from a new block even though we may check it later again.
This commit is contained in:
parent
2e09eee708
commit
fc4279136e
4
main.c
4
main.c
@ -4346,6 +4346,10 @@ static void convert_to_work(json_t *val, bool rolltime)
|
|||||||
}
|
}
|
||||||
work->pool = current_pool();
|
work->pool = current_pool();
|
||||||
work->rolltime = rolltime;
|
work->rolltime = rolltime;
|
||||||
|
/* We'll be checking this work item twice, but we already know it's
|
||||||
|
* from a new block so explicitly force the new block detection now
|
||||||
|
* rather than waiting for it to hit the stage thread */
|
||||||
|
test_work_current(work);
|
||||||
|
|
||||||
if (opt_debug)
|
if (opt_debug)
|
||||||
applog(LOG_DEBUG, "Pushing converted work to stage thread");
|
applog(LOG_DEBUG, "Pushing converted work to stage thread");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user