Skip to content

storage: enable migration for substores#3412

Merged
erwanor merged 4 commits into
mainfrom
erwan/storage_commit_inplace
Nov 20, 2023
Merged

storage: enable migration for substores#3412
erwanor merged 4 commits into
mainfrom
erwan/storage_commit_inplace

Conversation

@erwanor
Copy link
Copy Markdown
Contributor

@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
@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