Browse Source

benchmark: Fake submission of "shares"

Luke Dashjr 12 years ago
parent
commit
520d0b1bc3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -8866,6 +8866,9 @@ void _submit_work_async(struct work *work)
 	
 	
 	if (opt_benchmark)
 	if (opt_benchmark)
 	{
 	{
+		json_t * const jn = json_null();
+		rebuild_hash(work);
+		share_result(jn, jn, jn, work, false, "");
 		free_work(work);
 		free_work(work);
 		return;
 		return;
 	}
 	}