cmd: add integration test for rollback functionality (backport #7315) (#7368)

* 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:
mergify[bot]
2021-12-02 08:30:57 -08:00
committed by GitHub
parent 9994396e59
commit 05340ca069
10 changed files with 202 additions and 118 deletions

View File

@@ -1015,6 +1015,16 @@ func (n *Node) OnStop() {
n.Logger.Error("Prometheus HTTP server Shutdown", "err", err)
}
}
if n.blockStore != nil {
if err := n.blockStore.Close(); err != nil {
n.Logger.Error("problem closing blockstore", "err", err)
}
}
if n.stateStore != nil {
if err := n.stateStore.Close(); err != nil {
n.Logger.Error("problem closing statestore", "err", err)
}
}
}
// ConfigureRPC makes sure RPC has all the objects it needs to operate.