fix: retry proof when randomness changes

Simply warning isn't enough.
This commit is contained in:
Steven Allen 2021-03-10 10:24:58 -08:00
parent 1673362795
commit 84f721e373

View File

@ -612,6 +612,7 @@ func (s *WindowPoStScheduler) runPost(ctx context.Context, di dline.Info, ts *ty
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())
continue
}
// If we generated an incorrect proof, try again.