Commit 21a36f4840b1f816364ca91e693619ae03266f08

Con Kolivas 2013-03-16T00:04:30

Connect backup stratum pools if the primary pool cannot deliver work.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 6e47b43..43fd63b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4899,6 +4899,8 @@ static bool cnx_needed(struct pool *pool)
 	 * it. */
 	if (pool_strategy == POOL_FAILOVER && pool->prio < cp_prio())
 		return true;
+	if (pool_unworkable(cp))
+		return true;
 	return false;
 }