From 84f721e373f887658dde3fc9aa0f073218f4f613 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 10 Mar 2021 10:24:58 -0800 Subject: [PATCH] fix: retry proof when randomness changes Simply warning isn't enough. --- storage/wdpost_run.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/wdpost_run.go b/storage/wdpost_run.go index ea4d110de..000a3d568 100644 --- a/storage/wdpost_run.go +++ b/storage/wdpost_run.go @@ -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.