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

Feat: Sync directly from Reth and/or its database #239

Open
jmcph4 opened this issue Dec 2, 2024 · 1 comment
Open

Feat: Sync directly from Reth and/or its database #239

jmcph4 opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jmcph4
Copy link
Contributor

jmcph4 commented Dec 2, 2024

Describe the feature you would like

Syncing a checkpoint directly from Reth. This comes in two flavours:

Motivation

The overarching motivation here is that, assuming that one has access to a working Reth node, we already have the necessary information to both populate and synchronise any pools that we need -- we should not have to reserialise nor incur the performance penalties associated with communication via the network stack.

As above, there are two cases:

Additional context

Currently, all of the checkpoint syncing APIs accept an Alloy Provider, which can only abstract over HTTP, Websocket, or IPC (a la Unix sockets) transports.

@jmcph4 jmcph4 added the enhancement New feature or request label Dec 2, 2024
@jmcph4 jmcph4 changed the title Feat: Sync directly from the Reth database Feat: Sync directly from Reth and/or its database Dec 4, 2024
@jmcph4
Copy link
Contributor Author

jmcph4 commented Dec 4, 2024

There are two angles of attack in my opinion:

  • Somehow obtain an Alloy Provider from the Reth SDK,
  • Wrap an Alloy Provider with an analogous Reth type (FullRpcProvider?) either via
    • A new trait, say BlockchainDataProvider (bad name, I admit)
    • A newtype struct or enum

Would love feedback from essentially anyone but particularly @0xKitsune or @0xOsiris.

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

No branches or pull requests

1 participant