1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

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

This commit is contained in:
Con Kolivas 2012-12-29 10:42:45 +11:00
parent e1d7ecdd35
commit 7f46f6e91f
2 changed files with 1 additions and 4 deletions

View File

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

3
util.c
View File

@ -1314,9 +1314,6 @@ bool auth_stratum(struct pool *pool)
goto out; goto out;
} }
if (!pool->stratum_notify)
goto out;
ret = true; ret = true;
applog(LOG_INFO, "Stratum authorisation success for pool %d", pool->pool_no); applog(LOG_INFO, "Stratum authorisation success for pool %d", pool->pool_no);
pool->probed = true; pool->probed = true;