mempool: remove vestigal mempool wal (#6396)

This commit is contained in:
Sam Kleinman
2021-04-29 15:33:59 -04:00
committed by GitHub
parent 20610be98c
commit 8eccaf9535
8 changed files with 2 additions and 145 deletions
-13
View File
@@ -1322,14 +1322,6 @@ func (n *Node) OnStart() error {
n.prometheusSrv = n.startPrometheusServer(n.config.Instrumentation.PrometheusListenAddr)
}
// Start the mempool.
if n.config.Mempool.WalEnabled() {
err := n.mempool.InitWAL()
if err != nil {
return fmt.Errorf("init mempool WAL: %w", err)
}
}
// Start the transport.
addr, err := p2p.NewNetAddressString(p2p.IDAddressString(n.nodeKey.ID, n.config.P2P.ListenAddress))
if err != nil {
@@ -1469,11 +1461,6 @@ func (n *Node) OnStop() {
}
}
// stop mempool WAL
if n.config.Mempool.WalEnabled() {
n.mempool.CloseWAL()
}
if err := n.transport.Close(); err != nil {
n.Logger.Error("Error closing transport", "err", err)
}