diff --git a/eth/backend.go b/eth/backend.go index 5ce5da1c3ec4..acac40a8efc3 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -580,16 +580,37 @@ func (e *Ethereum) Start() error { // Stop implements node.Lifecycle, terminating all internal goroutines used by the // Ethereum protocol. func (e *Ethereum) Stop() error { + log.Info("Stopping Ethereum bloomIndexer start") e.bloomIndexer.Close() + log.Info("Ethereum bloomIndexer stopped") + + log.Info("Stopping Ethereum blockchain start") e.blockchain.Stop() + log.Info("Ethereum blockchain stopped") + + log.Info("Stopping Ethereum protocolManager start") e.protocolManager.Stop() + log.Info("Ethereum protocolManager stopped") + log.Info("Stopping Ethereum txPool start") e.txPool.Close() + log.Info("Ethereum txPool stopped") + + log.Info("Stopping Ethereum shutdownChan start") + close(e.shutdownChan) + log.Info("Ethereum shutdownChan stopped") + + log.Info("Stopping Ethereum miner start") e.miner.Stop() + log.Info("Ethereum miner stopped") + + log.Info("Stopping Ethereum eventMux start") e.eventMux.Stop() + log.Info("Ethereum eventMux stopped") + log.Info("Stopping Ethereum chainDb start") e.chainDb.Close() - close(e.shutdownChan) + log.Info("Ethereum chainDb stopped") return nil }