fsm: Recover from errors from VerifySeal in checkCommit
This commit is contained in:
parent
29db7047a3
commit
bb79af7721
2
extern/storage-sealing/checks.go
vendored
2
extern/storage-sealing/checks.go
vendored
@ -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?)")}
|
||||||
|
Loading…
Reference in New Issue
Block a user