-
Notifications
You must be signed in to change notification settings - Fork 1
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: add the snapshot sync for v2 store #18
Conversation
GetVersion rename to databucket, indexbucket
- GetVersion - migration (StoreUpgrades) - flat.Store query uses getversion
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.
Looks pretty solid now, only one change
@roysc I address the pr comments, Can you please look into the last commit |
@roysc I addressed the pr comments |
store/v2/root/snapshot_test.go
Outdated
// checking snapshot restoring for store with existed schema and without existed versions | ||
target3 := newMultiStore(t, memdb.NewDB(), 4) | ||
// checking snapshot restoring for store with existed schema and without existing versions | ||
target3 := newMultiStore(t, memdb.NewDB(), 0) |
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 should be non-zero, and the above 0
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.
sorry , i will fix
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.
LGTM
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.
A few nit-picky things to change, otherwise looks great!
"bufio" | ||
"compress/zlib" | ||
"fmt" | ||
prefixdb "github.com/cosmos/cosmos-sdk/db/prefix" |
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 order these imports
std lib
external deps
local deps
@i-norden I created new pull request (cosmos#10794) to cosmos-sdk master branch Can i close this pull request and I already added your comment changes to pull request |
@gsk967 perfect, thanks! Yeah let's close this. |
Description
State Sync for V2 Store (ADR 40)
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change