Skip to content

Commit 66f8daf

Browse files
terencechainfernantho
authored andcommitted
Validate blob sidecar: check bad parent first (OffchainLabs#15013)
1 parent 309a633 commit 66f8daf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

beacon-chain/sync/validate_blob.go

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 0 deletions
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)