Browse Source

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

nfactor-troky
Con Kolivas 13 years ago
parent
commit
5ad58f9a5c
  1. 3
      cgminer.c

3
cgminer.c

@ -3648,8 +3648,7 @@ static inline bool should_roll(struct work *work)
* reject blocks as invalid. */ * reject blocks as invalid. */
static inline bool can_roll(struct work *work) static inline bool can_roll(struct work *work)
{ {
return (work->pool && work->rolltime && !work->clone && return (work->pool && work->rolltime && !work->clone && work->rolls < 7000);
work->rolls < 7000 && !stale_work(work, false));
} }
static void roll_work(struct work *work) static void roll_work(struct work *work)

Loading…
Cancel
Save