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 invalid DataColumnSidecar for zero blobs #3953

Merged
merged 12 commits into from
Oct 3, 2024

Conversation

jtraglia
Copy link
Member

@jtraglia jtraglia commented Oct 2, 2024

This PR adds an assert len(sidecar.kzg_commitments) > 0 check for DataColumnSidecar objects. There should never be a situation where a DataColumnSidecar is propagated for a block with zero blobs.

In doing so, this PR creates a new verify_data_column_sidecar function and moves the asserts from verify_data_column_sidecar_kzg_proofs into it. Plus a bunch of tests.

@jtraglia jtraglia added general:bug Something isn't working EIP-7594 PeerDAS labels Oct 2, 2024
@jtraglia jtraglia mentioned this pull request Oct 2, 2024
6 tasks
Copy link
Contributor

@kevaundray kevaundray left a comment

Choose a reason for hiding this comment

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

Looks good to me; TIL about threading.lock

specs/_features/eip7594/fork-choice.md Outdated Show resolved Hide resolved
@jtraglia jtraglia merged commit 24874f3 into ethereum:dev Oct 3, 2024
26 checks passed
@jtraglia jtraglia deleted the reject-invalid-dcs branch October 3, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EIP-7594 PeerDAS general:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants