mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Put upper bounds to under 2 hours that work can be rolled into the future for bitcoind will deem it invalid beyond that.
This commit is contained in:
parent
bcec5f5102
commit
eddd02fea1
@ -3644,9 +3644,12 @@ static inline bool should_roll(struct work *work)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Limit rolls to 7000 to not beyond 2 hours in the future where bitcoind will
|
||||||
|
* reject blocks as invalid. */
|
||||||
static inline bool can_roll(struct work *work)
|
static inline bool can_roll(struct work *work)
|
||||||
{
|
{
|
||||||
return (work->pool && !stale_work(work, false) && work->rolltime && !work->clone);
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user