From 485da638c7b3ecd2e23299252848d99258fb6727 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 14 Aug 2019 01:41:00 -0400 Subject: ... --- eth/backend.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'eth/backend.go') diff --git a/eth/backend.go b/eth/backend.go index 12041de..16780cc 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -532,3 +532,16 @@ func (s *Ethereum) Stop() error { close(s.shutdownChan) return nil } + +func (s *Ethereum) StopPart() error { + s.bloomIndexer.Close() + s.blockchain.Stop() + s.engine.Close() + s.txPool.Stop() + s.miner.Stop() + s.eventMux.Stop() + + s.chainDb.Close() + close(s.shutdownChan) + return nil +} -- cgit v1.2.3-70-g09d2