diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-12 19:36:38 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-12 19:41:34 +0800 |
commit | 90c4493a105ef33c1d10735489dce5a42c30b282 (patch) | |
tree | 83f5dbea8df1584afabb366ca217c26ba088d2a0 /eth | |
parent | e2c2d8e15ebef85c77f7486f92c6430ca6f30785 (diff) | |
download | dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar.gz dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar.bz2 dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar.lz dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar.xz dexon-90c4493a105ef33c1d10735489dce5a42c30b282.tar.zst dexon-90c4493a105ef33c1d10735489dce5a42c30b282.zip |
eth, core: interupt the chain processing on stop
Added an additional channel which is used to interupt the chain manager
when it's processing blocks.
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index 60e9359dc..d2ec0cc62 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -527,8 +527,8 @@ func (self *Ethereum) AddPeer(nodeURL string) error { func (s *Ethereum) Stop() { s.net.Stop() - s.protocolManager.Stop() s.chainManager.Stop() + s.protocolManager.Stop() s.txPool.Stop() s.eventMux.Stop() if s.whisper != nil { |