fix: rollback command don't actually delete multistore versions (#11361)
* rollback command don't actually delete multistore versions Closes: #11333 - add unit tests - use LoadVersionForOverwriting - update tendermint dependency to 0.35.x release branch Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> flushMetadata after rollback Update server/rollback.go Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> fix build gofumpt * fix unit test
This commit is contained in:
co-authored by
Aleksandr Bezobchuk
parent
f8b55ff8ee
commit
51d2de582d
+1
-4
@@ -283,11 +283,8 @@ func DefaultStoreLoader(ms sdk.CommitMultiStore) error {
|
||||
|
||||
// CommitMultiStore returns the root multi-store.
|
||||
// App constructor can use this to access the `cms`.
|
||||
// UNSAFE: only safe to use during app initialization.
|
||||
// UNSAFE: must not be used during the abci life cycle.
|
||||
func (app *BaseApp) CommitMultiStore() sdk.CommitMultiStore {
|
||||
if app.sealed {
|
||||
panic("cannot call CommitMultiStore() after baseapp is sealed")
|
||||
}
|
||||
return app.cms
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user