aboutsummaryrefslogtreecommitdiff
path: root/eth
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-14 01:41:00 -0400
committerDeterminant <[email protected]>2019-08-14 01:41:00 -0400
commit485da638c7b3ecd2e23299252848d99258fb6727 (patch)
tree8e6d1dbdc10653f90e4393d46c2df3aee1bab664 /eth
parent592f21f5b97e5b1e714f194ae90ab83e6547cf41 (diff)
...
Diffstat (limited to 'eth')
-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
+}