Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: state migration from IAVL to SMT (ADR-040) #10962
feat: state migration from IAVL to SMT (ADR-040) #10962
Changes from 4 commits
4cc992f
df0dc4f
fca170d
79583ec
bcfeff1
d511fa3
00b99a7
0eaec31
9f496e9
39b303b
8b16dad
b305280
ebc1d3b
64e1cb4
39d51cf
242939e
a9fa647
ada2859
38527f7
1e884cf
1b79269
00b6360
dc57212
4695365
3a5bdf0
c103f16
4a9feb5
677639e
074da95
a05f72e
6eb51d1
c16dc89
119b77a
a97ed5a
179743c
bb61b5d
f381e09
7eec931
1af9b3b
ec331a0
e21a6f8
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - let's named these stores better,
rs
vsrootstore
isn't so clearThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise we skip the conflict check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we make sure that we use the same store key when doing migration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are registering the
storeKeys
into v2Store from v1Storehttps://github.com/cosmos/cosmos-sdk/pull/10962/files#diff-ad3a972d3e8f738c0ee269b134134e2beee4e5f0ee9849b0c71eb7cc9d669ce1R24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will fail when version = 0. Let's check for that case and short circuit, just returning a new empty store
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add records to multiple stores.