aboutsummaryrefslogtreecommitdiff
path: root/eth/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go13
1 files changed, 13 insertions, 0 deletions
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
+}