fsm: Recover from errors from VerifySeal in checkCommit

This commit is contained in:
Łukasz Magiera 2020-08-17 09:35:22 +02:00
parent 29db7047a3
commit bb79af7721

View File

@ -155,7 +155,7 @@ func (m *Sealing) checkCommit(ctx context.Context, si SectorInfo, proof []byte,
UnsealedCID: *si.CommD, UnsealedCID: *si.CommD,
}) })
if err != nil { if err != nil {
return xerrors.Errorf("verify seal: %w", err) return &ErrInvalidProof{xerrors.Errorf("verify seal: %w", err)}
} }
if !ok { if !ok {
return &ErrInvalidProof{xerrors.New("invalid proof (compute error?)")} return &ErrInvalidProof{xerrors.New("invalid proof (compute error?)")}