Commit 3d982dfbe935e07206735f830f0bb80e1d93b2ab

Con Kolivas 2012-10-03T09:49:01

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

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/cgminer.c b/cgminer.c
index 7bdf640..9f63be8 100644
--- a/cgminer.c
+++ b/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);