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

Add Eth-Consensus-Version for submit block SSZ #36

Open
realbigsean opened this issue Jun 26, 2024 · 0 comments
Open

Add Eth-Consensus-Version for submit block SSZ #36

realbigsean opened this issue Jun 26, 2024 · 0 comments

Comments

@realbigsean
Copy link

I don't see the header Eth-Consensus-Version in the spec here, not sure if it's used in relays in practice (the other option I can imagine is that relays use fallback decoding). With SSZ, the type you're trying to decode is has to be known, and this header lets you figure out which fork you're in to decode types that change across forks.

This is the header used in the beacon APIs for block submission:
https://github.com/ethereum/beacon-APIs/blob/672e03e25ace85a3bacaea553fbf374f4f844435/apis/beacon/blocks/blocks.yaml#L21
https://ethereum.github.io/beacon-APIs/#/Beacon/publishBlock

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

No branches or pull requests

1 participant