Merge pull request #3103 from filecoin-project/fix/fsm-recover-bork-snark

fsm: Recover from errors from VerifySeal in checkCommit
This commit is contained in:
Łukasz Magiera
2020-08-17 19:00:16 +02:00
committed by GitHub
+1 -1
View File
@@ -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?)")}