mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
log: add LOG_DEBUG message on restarting stratum.
This commit is contained in:
parent
ed586c4aa5
commit
91d36d097a
3
util.c
3
util.c
@ -2422,12 +2422,15 @@ out:
|
|||||||
|
|
||||||
bool restart_stratum(struct pool *pool)
|
bool restart_stratum(struct pool *pool)
|
||||||
{
|
{
|
||||||
|
applog(LOG_DEBUG, "Restarting stratum on pool %s", pool->poolname);
|
||||||
|
|
||||||
if (pool->stratum_active)
|
if (pool->stratum_active)
|
||||||
suspend_stratum(pool);
|
suspend_stratum(pool);
|
||||||
if (!initiate_stratum(pool))
|
if (!initiate_stratum(pool))
|
||||||
return false;
|
return false;
|
||||||
if (!auth_stratum(pool))
|
if (!auth_stratum(pool))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user