fix: checkReplica incorrectly returns ErrBadPR
This commit is contained in:
parent
556e97af17
commit
895eb476b4
2
extern/storage-sealing/checks.go
vendored
2
extern/storage-sealing/checks.go
vendored
@ -213,7 +213,7 @@ func checkReplicaUpdate(ctx context.Context, maddr address.Address, si SectorInf
|
|||||||
return &ErrBadRU{xerrors.Errorf("nil sealed cid")}
|
return &ErrBadRU{xerrors.Errorf("nil sealed cid")}
|
||||||
}
|
}
|
||||||
if si.ReplicaUpdateProof == nil {
|
if si.ReplicaUpdateProof == nil {
|
||||||
return ErrBadPR{xerrors.Errorf("nil PR2 proof")}
|
return &ErrBadPR{xerrors.Errorf("nil PR2 proof")}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
2
extern/storage-sealing/states_failed.go
vendored
2
extern/storage-sealing/states_failed.go
vendored
@ -233,7 +233,7 @@ func (m *Sealing) handleSubmitReplicaUpdateFailed(ctx statemachine.Context, sect
|
|||||||
return ctx.Send(SectorDealsExpired{xerrors.Errorf("expired dealIDs in sector: %w", err)})
|
return ctx.Send(SectorDealsExpired{xerrors.Errorf("expired dealIDs in sector: %w", err)})
|
||||||
default:
|
default:
|
||||||
log.Errorf("sanity check error, not proceeding: +%v", err)
|
log.Errorf("sanity check error, not proceeding: +%v", err)
|
||||||
return xerrors.Errorf("checkPieces sanity check error: %w", err)
|
return xerrors.Errorf("checkReplica sanity check error: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user