Browse Source

Merge branch 'gbt' into bfgminer

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
625c4674aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -3511,7 +3511,7 @@ static bool stale_work(struct work *work, bool share)
 	/* Technically the rolltime should be correct but some pools
 	/* Technically the rolltime should be correct but some pools
 	 * advertise a broken expire= that is lower than a meaningful
 	 * advertise a broken expire= that is lower than a meaningful
 	 * scantime */
 	 * scantime */
-	if (work->rolltime >= opt_scantime)
+	if (work->rolltime >= opt_scantime || work->tmpl)
 		work_expiry = work->rolltime;
 		work_expiry = work->rolltime;
 	else
 	else
 		work_expiry = opt_expiry;
 		work_expiry = opt_expiry;