Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject Blob Sidecar Incorrect Index #13094

Merged
merged 6 commits into from Oct 25, 2023
Merged

Conversation

terencechain
Copy link
Member

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.

@terencechain terencechain added Ready For Review A pull request ready for code review Deneb PRs or issues for the Deneb upgrade labels Oct 23, 2023
@terencechain terencechain self-assigned this Oct 23, 2023
@terencechain terencechain requested a review from a team as a code owner October 23, 2023 05:45
Copy link
Member

@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
Member 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
17 checks passed
@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
Deneb PRs or issues for the Deneb upgrade Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update gossip rule for new blob index validation
2 participants