mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-12 07:48:22 +00:00
Set work_block in gen_stratum_work for when work is reused to avoid thinking it's all stale.
This commit is contained in:
parent
74c11945f0
commit
3d982dfbe9
@ -4590,6 +4590,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
|
|||||||
work->id = total_work++;
|
work->id = total_work++;
|
||||||
work->longpoll = false;
|
work->longpoll = false;
|
||||||
work->getwork_mode = GETWORK_MODE_STRATUM;
|
work->getwork_mode = GETWORK_MODE_STRATUM;
|
||||||
|
work->work_block = work_block;
|
||||||
calc_diff(work, diff);
|
calc_diff(work, diff);
|
||||||
|
|
||||||
gettimeofday(&work->tv_staged, NULL);
|
gettimeofday(&work->tv_staged, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user