Validate blob sidecar: check bad parent first (#15013)

This commit is contained in:
terence
2025-03-05 09:54:44 -08:00
committed by GitHub
parent d46ca97680
commit 997a9112d1
2 changed files with 5 additions and 2 deletions

View File

@@ -92,11 +92,11 @@ func (s *Service) validateBlob(ctx context.Context, pid peer.ID, msg *pubsub.Mes
return pubsub.ValidationIgnore, err
}
if err := vf.ValidProposerSignature(ctx); err != nil {
if err := vf.SidecarParentValid(s.hasBadBlock); err != nil {
return pubsub.ValidationReject, err
}
if err := vf.SidecarParentValid(s.hasBadBlock); err != nil {
if err := vf.ValidProposerSignature(ctx); err != nil {
return pubsub.ValidationReject, err
}

View File

@@ -0,0 +1,3 @@
### Changed
- Validate blob sidecar re-order signature and bad parent block.