fix: retry proof when randomness changes
Simply warning isn't enough.
This commit is contained in:
parent
1673362795
commit
84f721e373
@ -612,6 +612,7 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di dline.Info, ts *ty
|
|||||||
|
|
||||||
if !bytes.Equal(checkRand, rand) {
|
if !bytes.Equal(checkRand, rand) {
|
||||||
log.Warnw("windowpost randomness changed", "old", rand, "new", checkRand, "ts-height", ts.Height(), "challenge-height", di.Challenge, "tsk", ts.Key())
|
log.Warnw("windowpost randomness changed", "old", rand, "new", checkRand, "ts-height", ts.Height(), "challenge-height", di.Challenge, "tsk", ts.Key())
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we generated an incorrect proof, try again.
|
// If we generated an incorrect proof, try again.
|
||||||
|
Loading…
Reference in New Issue
Block a user