-
Notifications
You must be signed in to change notification settings - Fork 797
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
Support SSZ request body for POST /beacon/blocks endpoints (v1 & v2) #4457
Comments
would adding ssz request body support for these endpoints look something like: defining post routes where the
then parsing the request body as ssz and executing the post beacon block logic in the relevant 'route handler' i.e. in |
Hi @eserilev I don't think we have any endpoint that supports SSZ request body yet, so I'm not exactly sure how it would look like, will probably need to look into the docs. I think you got the idea though - we do need to define a separate route(s) for this. In your above example, I think the existing |
great, I think i have a general understanding of this feature. I'd be happy to work on it |
Description
The
/eth/v1/beacon/blocks
and/eth/v2/beacon/blocks
beacon api endpoint supports both ssz and json bodies (spec here). However, Lighthouse only supports json. This can cause missed blocks when a non-lighthouse VC hits that api with a ssz payload. Moreover, we return a 500 error when we should be returning 415 (The supplied content-type is not supported).There is a separate issue for blinded blocks endpoints in #4262
Version
stable
Steps to resolve
Add SSZ request body support, use the supplied
Eth-Consensus-Version
HTTP request header to decode the SSZ bytes.The text was updated successfully, but these errors were encountered: