:fix: checkReplica incorrectly returns ErrBadPR

This commit is contained in:
Aayush Rajasekaran
2022-01-19 12:00:27 -05:00
committed by Aayush
parent ab8bf393c2
commit 3ff23ecbfa
4 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
+1 -1
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
+1 -1
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)
}
}