1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 18:14:20 +00:00

Only increment stale counter if the detected stales are discarded.

This commit is contained in:
Con Kolivas 2012-03-29 20:53:16 +11:00
parent d4c513030f
commit a1879c8057

View File

@ -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 */