Merge pull request #5768 from filecoin-project/fix/retry-proof-on-rand-change

fix: retry proof when randomness changes
This commit is contained in:
Łukasz Magiera 2021-03-10 21:23:55 +01:00 committed by GitHub
commit c0d1f4478a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.