Skip to content

Commit 76b0470

Browse files
committed
Validate blob sidecar: check bad parent first
1 parent 6015493 commit 76b0470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-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

0 commit comments

Comments
 (0)