Commit 7dbe4bbeb32c85fc306c7a9c820d84d9e6e7a32b

Con Kolivas 2013-08-21T20:12:00

Stratum is used more often so test for it first.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 7175c32..987f858 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -1864,7 +1864,7 @@ static bool getwork_decode(json_t *res_val, struct work *work)
 /* Returns whether the pool supports local work generation or not. */
 static bool pool_localgen(struct pool *pool)
 {
-	return (pool->has_gbt || pool->has_stratum);
+	return (pool->has_stratum || pool->has_gbt);
 }
 
 static bool work_decode(struct pool *pool, struct work *work, json_t *val)