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

History: Remove SSZ Union from BlockHeaderWithProof data structure #362

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kdeme
Copy link
Collaborator

@kdeme kdeme commented Jan 24, 2025

Proposal to remove the SSZ Union in the BlockHeaderWithProof data structure.

Opted for not having any select/identifier for the proof type at all considering it can be deducted from the header.timestamp.

Argument for removing it here: #337

Note that this is a breaking change. However, not more or less breaking than the (already!) removed None from the Union in recent spec changes (but not implemented by clients, I assume).

It might also need some db migration (might, as it depends on how data is stored, see comment #337 (comment)) or just db deletion. But again, same applies for the None removal.

@kdeme
Copy link
Collaborator Author

kdeme commented Jan 24, 2025

Also updated the portal-spec-tests test vectors in case somebody wants to try test this proposal: ethereum/portal-spec-tests#34

Copy link
Member

@pipermerriam pipermerriam left a comment

Choose a reason for hiding this comment

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

This seems like the right way forward. 👍

This will be another change that needs some level of coordination across the clients. @kdeme assuming this gets support across the teams, can you also create an issue to track the go-live plan for how we get this live on the network.

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.

2 participants