1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +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:
Con Kolivas 2012-10-03 09:49:01 +10:00
parent 74c11945f0
commit 3d982dfbe9

View File

@ -4590,6 +4590,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
work->id = total_work++;
work->longpoll = false;
work->getwork_mode = GETWORK_MODE_STRATUM;
work->work_block = work_block;
calc_diff(work, diff);
gettimeofday(&work->tv_staged, NULL);