From 7f46f6e91f9eeb320593c5698f3461977d4fae7b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 29 Dec 2012 10:42:45 +1100 Subject: [PATCH] Allow stratum to startup without notify but check it is valid before creating stratum work. --- cgminer.c | 2 +- util.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cgminer.c b/cgminer.c index e17334fc..9f82bf3b 100644 --- a/cgminer.c +++ b/cgminer.c @@ -6891,7 +6891,7 @@ begin_bench: pool = select_pool(lagging); retry: if (pool->has_stratum) { - while (!pool->stratum_active) { + while (!pool->stratum_active || !pool->stratum_notify) { struct pool *altpool = select_pool(true); sleep(5); diff --git a/util.c b/util.c index 82b1fa35..2ac4b88b 100644 --- a/util.c +++ b/util.c @@ -1314,9 +1314,6 @@ bool auth_stratum(struct pool *pool) goto out; } - if (!pool->stratum_notify) - goto out; - ret = true; applog(LOG_INFO, "Stratum authorisation success for pool %d", pool->pool_no); pool->probed = true;