Commit 8a40036974509e2205d4122bf8a88553ab6f6fdc

Con Kolivas 2011-07-15T10:27:48

Just insist on 1 lp staged work per mining thread on new block.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/main.c b/main.c
index 7390646..d440341 100644
--- a/main.c
+++ b/main.c
@@ -1210,10 +1210,7 @@ static void flush_requests(bool longpoll)
 
 	/* Temporarily increase the staged count so that get_work thinks there
 	 * is work available instead of making threads reuse existing work */
-	if (extra >= mining_threads)
-		inc_staged(mining_threads, true);
-	else
-		inc_staged(extra, true);
+	inc_staged(mining_threads, true);
 
 	for (i = 0; i < extra; i++) {
 		/* Queue a whole batch of new requests */