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

Tree states database migration #4482

Open
michaelsproul opened this issue Jul 7, 2023 · 0 comments
Open

Tree states database migration #4482

michaelsproul opened this issue Jul 7, 2023 · 0 comments
Labels
database tree-states Upcoming state and database overhaul

Comments

@michaelsproul
Copy link
Member

Description

We need to implement a database upgrade (and downgrade) procedure for turning a regular Lighthouse node into a tree-states node. I had a previous version of this working but abandoned it because the on-disk format was still changing. The on-disk format is still expecting a few changes (e.g. #4475), but should be closer to stability now.

Steps to resolve

I think the upgrade should proceed as follows:

Users can then recover historic states if they want them by running with --reconstruct-historic-states, which will reconstruct from genesis to the split slot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database tree-states Upcoming state and database overhaul
Projects
None yet
Development

No branches or pull requests

1 participant