Commit 401357e657cc955123e90fc6d69962a13571723f

Con Kolivas 2012-12-03T16:45:43

Enable backup stratum connections for getwork when the primary pool doesn't have longpoll aka solo mining.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 9a33f46..11153a1 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4697,7 +4697,7 @@ static bool cnx_needed(struct pool *pool)
 	cp = current_pool();
 	if (cp == pool)
 		return true;
-	if (!cp->has_gbt && !cp->has_stratum && !opt_fail_only)
+	if (!cp->has_gbt && !cp->has_stratum && (!opt_fail_only || !cp->hdr_path))
 		return true;
 	return false;
 }