Commit d40979d173e0d756f02271e4cccbe4eceb5f29f6

Con Kolivas 2012-02-09T22:28:59

No point discarding a share even if opt_fail is enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index d35d236..f3871ee 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;