flashbots / flashbots/relay-specs

Add `Eth-Consensus-Version` for submit block SSZ

Open
#36 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
HTML
Stars
31
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.