-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
post-upgrade with x/upgrade queries not working #7531
post-upgrade with x/upgrade queries not working #7531
Conversation
(cherry picked from commit bbbc0e1)
Codecov Report
@@ Coverage Diff @@
## launchpad/backports #7531 +/- ##
======================================================
Coverage ? 50.26%
======================================================
Files ? 338
Lines ? 17560
Branches ? 0
======================================================
Hits ? 8827
Misses ? 7940
Partials ? 793 |
|
Updated base branch accordingly. Please resolve the conflicts. |
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.
Please update the changelog file.
…to v0.39.1-upgrade-fix � Conflicts: � types/coin_benchmark_test.go
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.
I would downgrade go-amino back to the 0.15.x series unless there is a strong reason for this (and tests that it works)
// LoadStore returns an IAVL Store as a CommitKVStore setting its initialVersion | ||
// to the one given. Internally, it will load the store's version (id) from the | ||
// provided DB. An error is returned if the version fails to load. | ||
func LoadStoreWithInitialVersion(db dbm.DB, id types.CommitID, lazyLoading bool, initialVersion uint64) (types.CommitKVStore, error) { |
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 is a very nice function.
// been pruned, an error will be returned. Any mutable operations executed will | ||
// result in a panic. | ||
// been pruned, an empty immutable IAVL tree will be used. | ||
// Any mutable operations executed will result in a panic. |
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 wonder why the behavior here needs to change? Ah, for the historical queries once the new, empty store is created.
@clevinson please review and provide approval |
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.
Thanks for the fixes. Happy to merge this from my side.
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.
Few comment nits. otherwise lgtm.
Co-authored-by: Cory <[email protected]>
Co-authored-by: Cory <[email protected]>
Description
Backport of #7415 for Cosmos v0.39.2.
Closes the already closed #7385
Note
There was no base branch to compare with for Cosmos v0.39.1, so I picked this one. Please let me know if I should change it.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes