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

storage: enable migration for substores #3412

Merged
merged 4 commits into from
Nov 20, 2023
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Nov 20, 2023

Chain operators need to be able to migrate their chain state. Previously, our state model maintained a single merkle tree with a global prefix. With the addition of substores, we now maintain multiple trees for each configured prefix, "mounting" them in the main store (see #3131). To maintain continuity between cometbft block height, compact block height, and merkle tree versions, we need to allow commit to storage that does not increase the state's version. This PR extends support for this type of migration to substores.

@erwanor erwanor merged commit 5cc2dcd into main Nov 20, 2023
7 of 8 checks passed
@erwanor erwanor deleted the erwan/storage_commit_inplace branch November 20, 2023 12:15
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

Successfully merging this pull request may close these issues.

1 participant