mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-29 19:42:51 +00:00
* cmd: add integration test and fix bug in rollback command (#7315)
(cherry picked from commit bca2080c01)
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
This commit is contained in:
co-authored by
Callum Waters
parent
9994396e59
commit
05340ca069
@@ -43,6 +43,10 @@ func RollbackState(config *cfg.Config) (int64, []byte, error) {
|
||||
if err != nil {
|
||||
return -1, nil, err
|
||||
}
|
||||
defer func() {
|
||||
_ = blockStore.Close()
|
||||
_ = stateStore.Close()
|
||||
}()
|
||||
|
||||
// rollback the last state
|
||||
return state.Rollback(blockStore, stateStore)
|
||||
|
||||
Reference in New Issue
Block a user