|
@@ -6888,7 +6888,7 @@ int main(int argc, char *argv[])
|
|
|
quit(1, "Failed to find colon delimiter in userpass");
|
|
quit(1, "Failed to find colon delimiter in userpass");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- /* Set the currentpool to pool wiht priority 0 */
|
|
|
|
|
|
|
+ /* Set the currentpool to pool with priority 0 */
|
|
|
validate_pool_priorities();
|
|
validate_pool_priorities();
|
|
|
for (i = 0; i < total_pools; i++) {
|
|
for (i = 0; i < total_pools; i++) {
|
|
|
struct pool *pool = pools[i];
|
|
struct pool *pool = pools[i];
|
|
@@ -6966,7 +6966,7 @@ int main(int argc, char *argv[])
|
|
|
currentpool = pool;
|
|
currentpool = pool;
|
|
|
applog(LOG_INFO, "Pool %d %s active", pool->pool_no, pool->rpc_url);
|
|
applog(LOG_INFO, "Pool %d %s active", pool->pool_no, pool->rpc_url);
|
|
|
pools_active = true;
|
|
pools_active = true;
|
|
|
- break;
|
|
|
|
|
|
|
+ goto found_active_pool;
|
|
|
} else {
|
|
} else {
|
|
|
if (pool == currentpool)
|
|
if (pool == currentpool)
|
|
|
currentpool = NULL;
|
|
currentpool = NULL;
|
|
@@ -6998,6 +6998,7 @@ int main(int argc, char *argv[])
|
|
|
quit(0, "No servers could be used! Exiting.");
|
|
quit(0, "No servers could be used! Exiting.");
|
|
|
}
|
|
}
|
|
|
} while (!pools_active);
|
|
} while (!pools_active);
|
|
|
|
|
+found_active_pool: ;
|
|
|
|
|
|
|
|
#ifdef USE_SCRYPT
|
|
#ifdef USE_SCRYPT
|
|
|
if (detect_algo == 1 && !opt_scrypt) {
|
|
if (detect_algo == 1 && !opt_scrypt) {
|