Browse Source

Only increment stale counter if the detected stales are discarded.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
a1879c8057
  1. 12
      cgminer.c

12
cgminer.c

@ -1923,16 +1923,16 @@ static void *submit_work_thread(void *userdata) @@ -1923,16 +1923,16 @@ static void *submit_work_thread(void *userdata)
pthread_detach(pthread_self());
if (stale_work(work, true)) {
total_stale++;
pool->stale_shares++;
if (!opt_submit_stale && !pool->submit_old) {
applog(LOG_NOTICE, "Stale share detected, discarding");
goto out;
}
if (opt_submit_stale)
applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
else if (pool->submit_old)
applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
else {
applog(LOG_NOTICE, "Stale share detected, discarding");
total_stale++;
pool->stale_shares++;
goto out;
}
}
/* submit solution to bitcoin via JSON-RPC */

Loading…
Cancel
Save