Commit 30f6840b5c11f8c988b20ab9b757635da97ce370

Con Kolivas 2012-12-08T22:08:23

Only consider work stale for stratum of different job_id if it's not a share.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index b4b30ff..43d7dd1 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3185,7 +3185,7 @@ static bool stale_work(struct work *work, bool share)
 
 	pool = work->pool;
 
-	if (pool->has_stratum) {
+	if (!share && pool->has_stratum) {
 		bool same_job = true;
 
 		mutex_lock(&pool->pool_lock);