1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Check for submitold before submitstale.

This commit is contained in:
Con Kolivas 2012-04-27 12:47:13 +10:00
parent ed718b2b50
commit 5ece966f07

View File

@ -2086,10 +2086,10 @@ static void *submit_work_thread(void *userdata)
int failures = 0; int failures = 0;
if (stale_work(work, true)) { if (stale_work(work, true)) {
if (opt_submit_stale) if (pool->submit_old)
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"); applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
else if (opt_submit_stale)
applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
else { else {
applog(LOG_NOTICE, "Stale share detected, discarding"); applog(LOG_NOTICE, "Stale share detected, discarding");
sharelog("discard", work); sharelog("discard", work);