Browse Source

Merge branch 'gbt_eff' into bfgminer

Luke Dashjr 13 years ago
parent
commit
05aa885c84
1 changed files with 3 additions and 2 deletions
  1. 3 2
      miner.c

+ 3 - 2
miner.c

@@ -5791,6 +5791,9 @@ retry_stratum:
 			memcpy(&(work->tv_getwork_reply), &tv_getwork_reply, sizeof(struct timeval));
 			work->getwork_mode = GETWORK_MODE_TESTPOOL;
 			calc_diff(work, 0);
+
+			update_last_work(work);
+
 			applog(LOG_DEBUG, "Pushing pooltest work to base pool");
 
 			tq_push(thr_info[stage_thr_id].q, work);
@@ -5798,8 +5801,6 @@ retry_stratum:
 			pool->getwork_requested++;
 			ret = true;
 			gettimeofday(&pool->tv_idle, NULL);
-
-			update_last_work(work);
 		} else {
 badwork:
 			json_decref(val);