Browse Source

Fix --benchmark generating valid work for cgminer.

Conflicts:
	miner.c
Con Kolivas 13 years ago
parent
commit
de1b0f1905
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -3401,6 +3401,9 @@ static bool stale_work(struct work *work, bool share)
 	uint32_t block_id;
 	int getwork_delay;
 
+	if (opt_benchmark)
+		return false;
+
 	block_id = ((uint32_t*)work->data)[1];
 	pool = work->pool;