1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-10 20:51:03 +00:00

Merge branch 'master' of git://github.com/ckolivas/cgminer.git

This commit is contained in:
Paul Sheppard 2012-06-27 14:55:44 -07:00
commit 862a362bbf

View File

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