cmd: add integration test and fix bug in rollback command (#7315)

This commit is contained in:
Callum Waters
2021-12-02 12:17:16 +01:00
committed by GitHub
parent 5f57d84dd3
commit bca2080c01
13 changed files with 199 additions and 45 deletions

View File

@@ -704,6 +704,16 @@ func (n *nodeImpl) OnStop() {
n.Logger.Error("problem shutting down additional services", "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(ctx context.Context) ([]net.Listener, error) {