Skip to content

Remove SSZ Union usage in BlockHeaderWithProof type #3019

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

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

kdeme
Copy link
Contributor

@kdeme kdeme commented Jan 23, 2025

Remove SSZ Union in BlockHeaderWithProof type by making the proof an SSZ encoded ByteList. The right type for the proof can be selected at the decoding step by first looking into the header for the timestamp and selecting the right type based on the hardfork the block is in.

Draft as this is for a proposal to spec change.

@kdeme
Copy link
Contributor Author

kdeme commented Jan 24, 2025

Proposal spec change here: ethereum/portal-network-specs#362

@kdeme
Copy link
Contributor Author

kdeme commented Feb 7, 2025

Tests rely on ethereum/portal-spec-tests#34

@kdeme kdeme force-pushed the remove-union-in-blockheaderwithproof branch 4 times, most recently from 7cfa38f to ae7e355 Compare February 19, 2025 17:06
Remove SSZ Union in BlockHeaderWithProof type by making the proof
an SSZ encoded ByteList. The right type for the proof can be
selected at the decoding step by first looking into the header
for the timestamp and selecting the right type based on the
hardfork the block is in.
@kdeme kdeme force-pushed the remove-union-in-blockheaderwithproof branch from ae7e355 to 097e11a Compare February 21, 2025 11:47
@kdeme kdeme marked this pull request as ready for review February 24, 2025 17:06
@kdeme kdeme merged commit 21be015 into master Feb 24, 2025
26 checks passed
@kdeme kdeme deleted the remove-union-in-blockheaderwithproof branch February 24, 2025 17:09
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.

1 participant