mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Move a pool to POOL_REJECTING to be disabled only after 3 minutes of continuous rejected shares.
This commit is contained in:
parent
a8d50a3cb8
commit
b3bc506d9a
@ -1723,13 +1723,13 @@ static bool submit_upstream_work(const struct work *work, CURL *curl)
|
||||
}
|
||||
|
||||
/* Once we have more than a nominal amount of sequential rejects,
|
||||
* at least 10 and more than the current utility rate per minute,
|
||||
* at least 10 and more than 3 mins at the current utility,
|
||||
* disable the pool because some pool error is likely to have
|
||||
* ensued. */
|
||||
if (pool->seq_rejects > 10 && opt_disable_pool && total_pools > 1) {
|
||||
double utility = total_accepted / ( total_secs ? total_secs : 1 ) * 60;
|
||||
|
||||
if (pool->seq_rejects > utility) {
|
||||
if (pool->seq_rejects > utility * 3) {
|
||||
applog(LOG_WARNING, "Pool %d rejected %d sequential shares, disabling!",
|
||||
pool->pool_no, pool->seq_rejects);
|
||||
pool->enabled = POOL_REJECTING;
|
||||
|
Loading…
x
Reference in New Issue
Block a user