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

Implement 2 minutes beacon node sync with checkpoint state #2530

Closed
remyroy opened this issue Apr 30, 2021 · 7 comments
Closed

Implement 2 minutes beacon node sync with checkpoint state #2530

remyroy opened this issue Apr 30, 2021 · 7 comments
Assignees

Comments

@remyroy
Copy link

remyroy commented Apr 30, 2021

Is your feature request related to a problem? Please describe.
It can take a few hours to sync a Nimbus beacon node on mainnet or any of the testnet from scratch.

Describe the solution you'd like
It should take only 2 minutes to sync a Nimbus beacon node from scratch using a recent finalized checkpoint state.

Additional context
See this video by Adrian Sutton from the Teku development team. You can get more details on the related Teku documentation page.

@remyroy
Copy link
Author

remyroy commented Apr 30, 2021

Looking at the command line flags, it seems like this might already be implemented, but I'm not sure how exactly you would use it:

     --weak-subjectivity-checkpoint  Weak subjectivity checkpoint in the format
                               block_root:epoch_number.
     --finalized-checkpoint-state  SSZ file specifying a recent finalized state.
     --finalized-checkpoint-block  SSZ file specifying a recent finalized block.

Maybe this need just a little more documentation with some examples.

@mratsim
Copy link
Contributor

mratsim commented May 3, 2021

It's a feature that is still being worked on, hence we don't publicize it at the moment.

@arnetheduck
Copy link
Member

In particular, there are unresolved spec issues before it can be implemented in a secure and sustainable way - see ethereum/consensus-specs#2131 - teku currently operates in a grey zone of the spec when it syncs the way it does.

@arnetheduck
Copy link
Member

Another way to start up quickly is to simply copy the existing sqlite database - it's one file that's fairly easy to move around.

@arnetheduck
Copy link
Member

https://notes.status.im/nimbus-eth2-checkpoint-sync# outlines a rough technical roadmap for this feature

@arnetheduck
Copy link
Member

#3209

@arnetheduck
Copy link
Member

Released in 1.7.0: https://nimbus.guide/trusted-node-sync.html

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

No branches or pull requests

4 participants