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

This commit is contained in:
mergify[bot]
2022-01-05 18:07:06 +01:00
committed by GitHub
parent 7770ab0efd
commit c7d338f712
12 changed files with 133 additions and 47 deletions

View File

@@ -843,6 +843,16 @@ func (n *nodeImpl) 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)
}
}
}
func (n *nodeImpl) startRPC() ([]net.Listener, error) {