mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
Count lost shares with stratum as submit stale lost.
This commit is contained in:
parent
0465fef553
commit
ffb8a29abf
@ -4320,8 +4320,11 @@ static void clear_stratum_shares(struct pool *pool)
|
|||||||
}
|
}
|
||||||
mutex_unlock(&sshare_lock);
|
mutex_unlock(&sshare_lock);
|
||||||
|
|
||||||
if (cleared)
|
if (cleared) {
|
||||||
applog(LOG_WARNING, "Lost %d shares due to stratum disconnect on pool %d", cleared, pool->pool_no);
|
applog(LOG_WARNING, "Lost %d shares due to stratum disconnect on pool %d", cleared, pool->pool_no);
|
||||||
|
pool->stale_shares++;
|
||||||
|
total_stale++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* One stratum thread per pool that has stratum waits on the socket checking
|
/* One stratum thread per pool that has stratum waits on the socket checking
|
||||||
|
Loading…
x
Reference in New Issue
Block a user