Browse Source

Allow stratum to startup without notify but check it is valid before creating stratum work.

Conflicts:

	miner.c
Con Kolivas 13 years ago
parent
commit
0c67924e80
2 changed files with 1 additions and 4 deletions
  1. 1 1
      miner.c
  2. 0 3
      util.c

+ 1 - 1
miner.c

@@ -3397,7 +3397,7 @@ retry:
 	pool = wc->pool;
 
 	if (pool->has_stratum) {
-		while (!pool->stratum_active) {
+		while (!pool->stratum_active || !pool->stratum_notify) {
 			struct pool *altpool = select_pool(true);
 
 			sleep(5);

+ 0 - 3
util.c

@@ -1304,9 +1304,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->stratum_auth = true;