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

Build better bridges #605

Open
acolytec3 opened this issue Jul 18, 2024 · 0 comments
Open

Build better bridges #605

acolytec3 opened this issue Jul 18, 2024 · 0 comments
Labels

Comments

@acolytec3
Copy link
Collaborator

acolytec3 commented Jul 18, 2024

As of this writing, we should always expect a proof to accompany any block header that Ultralight receives for pre-Shapella blocks. We don't have a comprehensive history network bridge script for blocks at the moment that will construct the header proof for a pre-Capella block and then push to the client though we have semi-functional examples here for a post-merge block. An ideal solution would be a standalone script that does something like the following:

  • Accept a block range as a CLI parameter
  • Pull those blocks from mainnet JSON-RPC
  • Second step - for post merge blocks, retrieve the corresponding Beacon Blocks from a beacon node
  • Pull the appropriate Epoch Accumulators and/or Historical Batches from portal-accumulators
  • Construct the header proofs and pipe to Ultralight

There is a utility method for constructing preMergeHeaderProofs and the process for constructing post-merge proofs can be found in the postMergeHistoryBridge script noted above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant