From bb79af7721a0278e680f94bf256d1ed987d19a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 17 Aug 2020 09:35:22 +0200 Subject: [PATCH] fsm: Recover from errors from VerifySeal in checkCommit --- extern/storage-sealing/checks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/storage-sealing/checks.go b/extern/storage-sealing/checks.go index a86953d08..95ef101fa 100644 --- a/extern/storage-sealing/checks.go +++ b/extern/storage-sealing/checks.go @@ -155,7 +155,7 @@ func (m *Sealing) checkCommit(ctx context.Context, si SectorInfo, proof []byte, UnsealedCID: *si.CommD, }) if err != nil { - return xerrors.Errorf("verify seal: %w", err) + return &ErrInvalidProof{xerrors.Errorf("verify seal: %w", err)} } if !ok { return &ErrInvalidProof{xerrors.New("invalid proof (compute error?)")}