Commit 5ad58f9a5ce1a6b99f3011e1811fa01040d12aa2

Con Kolivas 2012-06-27T23:36:48

Work is checked if it's stale elsewhere outside of can_roll so there is no need to check it again.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 457990d..8b38aca 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3648,8 +3648,7 @@ static inline bool should_roll(struct work *work)
  * reject blocks as invalid. */
 static inline bool can_roll(struct work *work)
 {
-	return (work->pool && work->rolltime && !work->clone &&
-		work->rolls < 7000 && !stale_work(work, false));
+	return (work->pool && work->rolltime && !work->clone && work->rolls < 7000);
 }
 
 static void roll_work(struct work *work)