From d40979d173e0d756f02271e4cccbe4eceb5f29f6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 9 Feb 2012 22:28:59 +1100 Subject: [PATCH] No point discarding a share even if opt_fail is enabled. --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index d35d236c..f3871eed 100644 --- a/cgminer.c +++ b/cgminer.c @@ -1717,7 +1717,7 @@ static bool stale_work(struct work *work, bool share) if (work->work_block != work_block) return true; - if (opt_fail_only && work->pool != current_pool()) + if (opt_fail_only && !share && work->pool != current_pool()) return true; return false;