fix: checkReplica incorrectly returns ErrBadPR

This commit is contained in:
Aayush Rajasekaran 2022-01-18 18:54:33 -05:00
parent 556e97af17
commit 895eb476b4
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ func checkReplicaUpdate(ctx context.Context, maddr address.Address, si SectorInf
return &ErrBadRU{xerrors.Errorf("nil sealed cid")}
}
if si.ReplicaUpdateProof == nil {
return ErrBadPR{xerrors.Errorf("nil PR2 proof")}
return &ErrBadPR{xerrors.Errorf("nil PR2 proof")}
}
return nil

View File

@ -233,7 +233,7 @@ func (m *Sealing) handleSubmitReplicaUpdateFailed(ctx statemachine.Context, sect
return ctx.Send(SectorDealsExpired{xerrors.Errorf("expired dealIDs in sector: %w", err)})
default:
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)
}
}