Browse Source

Bugfix: Always honour libblkmaker time limits

Hopefully pools won't be using broken expires with GBT, and libblkmaker won't cooperate if we try to ignore it anyway
Luke Dashjr 13 years ago
parent
commit
6d2bb23ac9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

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