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

Check for submitold flag on resubmit of shares, and give different message for stale shares on retry.

This commit is contained in:
Con Kolivas 2012-04-27 12:54:29 +10:00
parent 5ece966f07
commit b1c273e71b

View File

@ -2102,8 +2102,8 @@ static void *submit_work_thread(void *userdata)
/* submit solution to bitcoin via JSON-RPC */ /* submit solution to bitcoin via JSON-RPC */
while (!submit_upstream_work(work)) { while (!submit_upstream_work(work)) {
if (!opt_submit_stale && stale_work(work, true)) { if (!opt_submit_stale && stale_work(work, true) && !pool->submit_old) {
applog(LOG_NOTICE, "Stale share detected, discarding"); applog(LOG_NOTICE, "Stale share detected on submit retry, discarding");
total_stale++; total_stale++;
pool->stale_shares++; pool->stale_shares++;
break; break;