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 optimistic header v2 endpoint #618

Open
wants to merge 1 commit into
base: deneb-optimistic
Choose a base branch
from

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 mentioned this pull request May 14, 2024
5 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