Browse Source

Due to work restarts causing ~all processors to request work at once, it is always ideal to stage at least mining_threads extra works

Luke Dashjr 12 years ago
parent
commit
ed232512f0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      miner.c

+ 2 - 4
miner.c

@@ -11866,10 +11866,8 @@ begin_bench:
 
 		cp = current_pool();
 
-		/* If the primary pool is a getwork pool and cannot roll work,
-		 * try to stage one extra work per mining thread */
-		if (!pool_localgen(cp) && !staged_rollable)
-			max_staged += mining_threads;
+		// Generally, each processor needs a new work, and all at once during work restarts
+		max_staged += mining_threads;
 
 		mutex_lock(stgd_lock);
 		ts = __total_staged();