|
|
@ -2083,11 +2083,14 @@ static void *submit_work_thread(void *userdata) |
|
|
|
|
|
|
|
|
|
|
|
if (stale_work(work, true)) { |
|
|
|
if (stale_work(work, true)) { |
|
|
|
if (pool->submit_old) |
|
|
|
if (pool->submit_old) |
|
|
|
applog(LOG_NOTICE, "Stale share detected, submitting as pool requested"); |
|
|
|
applog(LOG_NOTICE, "Stale share detected, submitting as pool %d requested", |
|
|
|
|
|
|
|
pool->pool_no); |
|
|
|
else if (opt_submit_stale) |
|
|
|
else if (opt_submit_stale) |
|
|
|
applog(LOG_NOTICE, "Stale share detected, submitting as user requested"); |
|
|
|
applog(LOG_NOTICE, "Stale share detected from pool %d, submitting as user requested", |
|
|
|
|
|
|
|
pool->pool_no); |
|
|
|
else { |
|
|
|
else { |
|
|
|
applog(LOG_NOTICE, "Stale share detected, discarding"); |
|
|
|
applog(LOG_NOTICE, "Stale share detected from pool %d, discarding", |
|
|
|
|
|
|
|
pool->pool_no); |
|
|
|
sharelog("discard", work); |
|
|
|
sharelog("discard", work); |
|
|
|
total_stale++; |
|
|
|
total_stale++; |
|
|
|
pool->stale_shares++; |
|
|
|
pool->stale_shares++; |
|
|
|