Browse Source

Set work_block in gen_stratum_work for when work is reused to avoid thinking it's all stale.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
3d982dfbe9
  1. 1
      cgminer.c

1
cgminer.c

@ -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…
Cancel
Save