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(store/v2): implement the feature to upgrade the store keys #20453
feat(store/v2): implement the feature to upgrade the store keys #20453
Changes from 37 commits
34f301a
e22fa63
deb1cef
422c2f1
de5188c
787c2f1
cc5803d
982234c
52a0148
c434513
01f58fe
0a395e0
9b91446
fee3fd7
9ddef3c
cc04a80
5231c52
37079b9
e23e66a
5249bcd
b74f833
dd22733
6f23f8e
0b11f85
ad0310d
5e5b340
2af4c06
7240ced
4309308
6d81e39
e99168d
77d0533
f70c4fa
2d341ae
6ae8def
805f697
d3c6e87
2e1d53b
be3e5af
0948f11
74b31e0
66d86ec
f50b207
bca11e4
32fbcfe
65bce60
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.
should we use a buf pool?
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.
it is not triggered frequently, I will dig into the next pr regarding the usage of buf pool.
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.
not really relevant to this PR, but why are we using varint encoding? Version is a 64 bit uint so isn't a static 8 byte little endian encoded int fine?
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.
afaik, it is introduced to optimize the data
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.
I think if a StoreInfo (below)
cosmos-sdk/store/v2/proof/commit_info.go
Lines 24 to 28 in f50b207
was stored here instead of packing all metadata into the key we would gain two key advantages:
In particular this PR makes (2) impossible since
mountTreeFn
is singular.