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

Create new snapshot checkpoints #3008

Closed
2 tasks
github-actions bot opened this issue Jun 19, 2023 · 0 comments · Fixed by #3024
Closed
2 tasks

Create new snapshot checkpoints #3008

github-actions bot opened this issue Jun 19, 2023 · 0 comments · Fixed by #3024
Assignees
Labels
Priority: 3 - Medium Nice-to-have, does not impede core functionality Type: Enhancement

Comments

@github-actions
Copy link

github-actions bot commented Jun 19, 2023

Forest uses checkpoints to improve performance when loading a snapshot. Without checkpoints, the blockchain has to be fully traversed to verify we have the right genesis block. Checkpoints short-circuit this search and shave off tens of minutes in boot time.

Checkpoints have to be regularly updated, though, and this issue is automatically created once per month. To close this issue, follow the procedure for computing new checkpoint hashes and add them to the checkpoints yaml file.

How to compute a new checkpoint for calibnet:

  1. Install Forest and connect to the calibnet: forest --chain calibnet --encrypt-keystore false
  2. Wait for Forest to catch up to the network: forest-cli sync wait
  3. Compute new checkpoint hash: forest-cli chain tipset-hash
  4. Add the checkpoint hash to the checkpoint yaml file.

For mainnet, run the same commands but use --chain mainnet instead of --chain calibnet.

Issue TODOs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 3 - Medium Nice-to-have, does not impede core functionality Type: Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant