Browse Source

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

Con Kolivas 13 years ago
parent
commit
3d982dfbe9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -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);