Browse Source

Fix --benchmark generating valid work for cgminer.

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

+ 3 - 0
cgminer.c

@@ -3031,6 +3031,9 @@ static bool stale_work(struct work *work, bool share)
 	struct pool *pool;
 	int getwork_delay;
 
+	if (opt_benchmark)
+		return false;
+
 	if (work->work_block != work_block) {
 		applog(LOG_DEBUG, "Work stale due to block mismatch");
 		return true;