Browse Source

Merge branch 'bugfix_dont_roll_stale' into bfgminer

Luke Dashjr 13 years ago
parent
commit
ed0ea0cbc3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      miner.c

+ 3 - 0
miner.c

@@ -3247,6 +3247,9 @@ static inline bool should_roll(struct work *work)
 	if (work->pool != current_pool() && pool_strategy != POOL_LOADBALANCE && pool_strategy != POOL_BALANCE)
 		return false;
 
+	if (stale_work(work, false))
+		return false;
+
 	if (work->rolltime > opt_scantime)
 		expiry = work->rolltime;
 	else