1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

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

This reverts commit 5ad58f9a5ce1a6b99f3011e1811fa01040d12aa2.
This commit is contained in:
Con Kolivas 2012-06-28 07:27:57 +10:00
parent 5ad58f9a5c
commit 24316fc7fc

View File

@ -3648,7 +3648,8 @@ 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 && work->rolls < 7000); return (work->pool && work->rolltime && !work->clone &&
work->rolls < 7000 && !stale_work(work, false));
} }
static void roll_work(struct work *work) static void roll_work(struct work *work)