Skip to content

Conversation

@terencechain
Copy link
Collaborator

Fixes #13079

This PR adds a new gossip rule, implementing the changes proposed in Ethereum Consensus Specs PR #3525. The new rule REJECT sidecars with an index greater than or equal to MAX_BLOBS_PER_BLOCK.

Copy link
Contributor

@nisdas nisdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our implementation was not vulnerable to the original bug, due to the fact we deferred from the spec, specifically this line:

[REJECT] The sidecar is for the correct subnet -- i.e. compute_subnet_for_blob_sidecar(sidecar.index) == subnet_id.

We do not use the spec helper here, we should do so as there can always be the case where blobs per block > num of subnets and we would fail

@terencechain
Copy link
Collaborator Author

Our implementation was not vulnerable to the original bug, due to the fact we deferred from the spec, specifically this line:

[REJECT] The sidecar is for the correct subnet -- i.e. compute_subnet_for_blob_sidecar(sidecar.index) == subnet_id.

We do not use the spec helper here, we should do so as there can always be the case where blobs per block > num of subnets and we would fail

addressed in #13102

@prylabs-bulldozer prylabs-bulldozer bot merged commit cbf6a27 into develop Oct 25, 2023
@prylabs-bulldozer prylabs-bulldozer bot deleted the reject-sidecar-index branch October 25, 2023 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update gossip rule for new blob index validation

3 participants