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

fetch beaconchain data from p2p network #59

Open
ncitron opened this issue Sep 26, 2022 · 4 comments
Open

fetch beaconchain data from p2p network #59

ncitron opened this issue Sep 26, 2022 · 4 comments
Assignees
Labels
feat New feature or request help wanted Extra attention is needed

Comments

@ncitron
Copy link
Collaborator

ncitron commented Sep 26, 2022

This one might be a stretch, but if we can fetch all beaconchain data (updates and beacon blocks) from the p2p network, we could entirely remove the need for an eth2 rpc. Nimbus nodes already gossip all the light client data we need.

@ncitron ncitron added the feat New feature or request label Sep 26, 2022
@ncitron ncitron added the help wanted Extra attention is needed label Nov 8, 2022
@ameya-deshmukh
Copy link

Hey @ncitron would love to pick this up and give it a go. Let me know if there's anyone else looking to work on this. Will update with a rough plan over the weekend.

@ncitron
Copy link
Collaborator Author

ncitron commented Nov 26, 2022

Thats great! You two may want to coordinate to see if there is room for collaboration. I imagine there may be since its a somewhat hefty project.

I've also been thinking about how we should integrate p2p. To start, I think it is ok if we just allow p2p optionally with a flag. However, I think eventually I nice default would be to implement a hybrid approach, where we begin syncing using the rpc to start, and begin peering with p2p simultaneously. Once we have suitable peers we can switch to p2p mode. In cases where the centralized rpc is available, this allows us to sync incredibly quickly from a cold start, but when it is not, we can still sync fully from p2p. Seems like a nice tradeoff, but curious to hear what others think about this strategy.

@ameya-deshmukh
Copy link

Would love to collaborate. Adding you.

@ameya-deshmukh
Copy link

Hey sorry. Was busy the last few days. Pinging you right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants