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

Migrate state to store/v2 #10517

Closed
4 tasks
roysc opened this issue Nov 10, 2021 · 1 comment
Closed
4 tasks

Migrate state to store/v2 #10517

roysc opened this issue Nov 10, 2021 · 1 comment
Labels

Comments

@roysc
Copy link
Contributor

roysc commented Nov 10, 2021

Summary

Implement a procedure to migrate state storage to the SMT-based store for ADR-040.

Problem Definition

As the new state store is implemented for ADR-040, we will need a command to migrate app state to the new store. Steps involved:

  • iterate over all store keys and save them (without Cache layer) to store/v2
  • send an IBC UpgradeClient request with the new client state

Proposal

  • Implement an app command which is to be manually run on an offline chain.
  • Upon next running the chain, the UpgradeClient event is emitted.
  • The original database contents are not deleted or modified until the migration successfully completes.
    • Deletion could be left to an additional manual command.
  • TODO: additional steps or considerations?

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@roysc roysc mentioned this issue Nov 10, 2021
38 tasks
@i-norden
Copy link
Contributor

i-norden commented Jan 5, 2022

Closing as this is a duplicate of #10803, I moved any details here that are missing there over.

@i-norden i-norden closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants