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
commit 01df17f1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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?)")}