Browse Source

Bugfix: Record discard-during-retry shares in the sharelog

Luke Dashjr 13 years ago
parent
commit
0da17af320
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -2221,6 +2221,7 @@ static void *submit_work_thread(void *userdata)
 	while (!submit_upstream_work(work, ce->curl)) {
 		if (stale_work(work, true)) {
 			applog(LOG_NOTICE, "Share became stale while retrying submit, discarding");
+			sharelog("discard", work);
 			total_stale++;
 			pool->stale_shares++;
 			break;