Commit 9f1d9ce3b7be85ba4dcca2f5cd2f650e26e28321

Con Kolivas 2012-08-16T00:16:13

Artificially set the pool lagging flag on pool switch in failover only mode as well.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index 85a916d..827e217 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2679,6 +2679,12 @@ void switch_pools(struct pool *selected)
 	pool = currentpool;
 	mutex_unlock(&control_lock);
 
+	/* Set the lagging flag to avoid pool not providing work fast enough
+	 * messages in failover only mode since  we have to get all fresh work
+	 * as in restart_threads */
+	if (opt_fail_only)
+		pool_tset(pool, &pool->lagging);
+
 	if (pool != last_pool)
 		applog(LOG_WARNING, "Switching to %s", pool->rpc_url);