mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-01 16:52:18 +00:00
Fix --benchmark generating valid work for cgminer.
This commit is contained in:
parent
6a0882f05b
commit
d16d4928f7
@ -3031,6 +3031,9 @@ static bool stale_work(struct work *work, bool share)
|
|||||||
struct pool *pool;
|
struct pool *pool;
|
||||||
int getwork_delay;
|
int getwork_delay;
|
||||||
|
|
||||||
|
if (opt_benchmark)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (work->work_block != work_block) {
|
if (work->work_block != work_block) {
|
||||||
applog(LOG_DEBUG, "Work stale due to block mismatch");
|
applog(LOG_DEBUG, "Work stale due to block mismatch");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user