Skip to content

Commit 1f38c8b

Browse files
authored
fix: fix blob sidecar index check (#7315)
Fix index check
1 parent bfe54d2 commit 1f38c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/beacon-node/src/chain/validation/blobSidecar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function validateGossipBlobSidecar(
1919
const blobSlot = blobSidecar.signedBlockHeader.message.slot;
2020

2121
// [REJECT] The sidecar's index is consistent with `MAX_BLOBS_PER_BLOCK` -- i.e. `blob_sidecar.index < MAX_BLOBS_PER_BLOCK`.
22-
if (blobSidecar.index < chain.config.MAX_BLOBS_PER_BLOCK) {
22+
if (blobSidecar.index >= chain.config.MAX_BLOBS_PER_BLOCK) {
2323
throw new BlobSidecarGossipError(GossipAction.REJECT, {
2424
code: BlobSidecarErrorCode.INDEX_TOO_LARGE,
2525
blobIdx: blobSidecar.index,

0 commit comments

Comments
 (0)