mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 15:34:16 +00:00
Set lagging flag on first adding a pool to prevent pool slow warning at startup.
This commit is contained in:
parent
73d61ca4c3
commit
4a29759480
@ -5383,9 +5383,13 @@ void add_pool_details(struct pool *pool, bool live, char *url, char *user, char
|
||||
quit(1, "Failed to malloc userpass");
|
||||
sprintf(pool->rpc_userpass, "%s:%s", pool->rpc_user, pool->rpc_pass);
|
||||
|
||||
enable_pool(pool);
|
||||
|
||||
/* Prevent noise on startup */
|
||||
pool->lagging = true;
|
||||
|
||||
/* Test the pool is not idle if we're live running, otherwise
|
||||
* it will be tested separately */
|
||||
enable_pool(pool);
|
||||
if (live && !pool_active(pool, false))
|
||||
pool->idle = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user