Adds a header endpoint to only parse and save the header in order to construct the getHeader endpoint. A separate endpoint will be implemented as part of the optimistic v2 block submission endpoint.
Major changes:
new submitNewHeader handler at /relay/v1/builder/headers which retains most of the checks and bid comparisons as submitNewBlock handler.
modifies redis operations to only store the bid if the block payload is not provided (for optimistic mode)
tests for all new functionality
TODO:
DB operations to save the header
submit block v2 optimistic endpoint
demotion logic if the payload for the header was never sent for the payload
📝 Summary
Adds a header endpoint to only parse and save the header in order to construct the
getHeader
endpoint. A separate endpoint will be implemented as part of the optimistic v2 block submission endpoint.Major changes:
submitNewHeader
handler at/relay/v1/builder/headers
which retains most of the checks and bid comparisons assubmitNewBlock
handler.TODO:
⛱ Motivation and Context
Implements the optimistic v2 proposal.
📚 References
✅ I have run these commands
make lint
make test-race
go mod tidy
CONTRIBUTING.md