Browse Source

Move a pool to POOL_REJECTING to be disabled only after 3 minutes of continuous rejected shares.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
b3bc506d9a
  1. 4
      cgminer.c

4
cgminer.c

@ -1723,13 +1723,13 @@ static bool submit_upstream_work(const struct work *work, CURL *curl) @@ -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…
Cancel
Save