1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

No point discarding a share even if opt_fail is enabled.

This commit is contained in:
Con Kolivas 2012-02-09 22:28:59 +11:00
parent 435e5c85f6
commit d40979d173

View File

@ -1717,7 +1717,7 @@ static bool stale_work(struct work *work, bool share)
if (work->work_block != work_block) if (work->work_block != work_block)
return true; return true;
if (opt_fail_only && work->pool != current_pool()) if (opt_fail_only && !share && work->pool != current_pool())
return true; return true;
return false; return false;