Skip to content

Conversation

avalonche
Copy link
Collaborator

@avalonche avalonche commented May 6, 2024

📝 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:

  • 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

⛱ Motivation and Context

Implements the optimistic v2 proposal.

📚 References


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

@avalonche avalonche force-pushed the optimistic-header-v2 branch from f2777cf to 0ea2b26 Compare May 6, 2024 21:29
@avalonche avalonche force-pushed the optimistic-header-v2 branch from 0ea2b26 to 44a89d3 Compare May 6, 2024 23:12
@avalonche avalonche mentioned this pull request May 14, 2024
4 tasks
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.

1 participant