Browse Source

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

Con Kolivas 14 years ago
parent
commit
b1c273e71b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cgminer.c

+ 2 - 2
cgminer.c

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