Skip to content

Commit 997a911

Browse files
authored
Validate blob sidecar: check bad parent first (#15013)
1 parent d46ca97 commit 997a911

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

beacon-chain/sync/validate_blob.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ func (s *Service) validateBlob(ctx context.Context, pid peer.ID, msg *pubsub.Mes
9292
return pubsub.ValidationIgnore, err
9393
}
9494

95-
if err := vf.ValidProposerSignature(ctx); err != nil {
95+
if err := vf.SidecarParentValid(s.hasBadBlock); err != nil {
9696
return pubsub.ValidationReject, err
9797
}
9898

99-
if err := vf.SidecarParentValid(s.hasBadBlock); err != nil {
99+
if err := vf.ValidProposerSignature(ctx); err != nil {
100100
return pubsub.ValidationReject, err
101101
}
102102

changelog/tt_validate_block.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Changed
2+
3+
- Validate blob sidecar re-order signature and bad parent block.

0 commit comments

Comments
 (0)