mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-08 21:14:14 +00:00
Only increment stale counter if the detected stales are discarded.
This commit is contained in:
parent
d4c513030f
commit
a1879c8057
12
cgminer.c
12
cgminer.c
@ -1923,16 +1923,16 @@ static void *submit_work_thread(void *userdata)
|
|||||||
pthread_detach(pthread_self());
|
pthread_detach(pthread_self());
|
||||||
|
|
||||||
if (stale_work(work, true)) {
|
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)
|
if (opt_submit_stale)
|
||||||
applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
|
applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
|
||||||
else if (pool->submit_old)
|
else if (pool->submit_old)
|
||||||
applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
|
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 */
|
/* submit solution to bitcoin via JSON-RPC */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user