Merge pull request #7976 from filecoin-project/asr/snap-errorcase

fix: checkReplica incorrectly returns ErrBadPR
This commit is contained in:
Łukasz Magiera
2022-01-19 10:32:52 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+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)
}
}