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/backend.go | |
parent | e2c2d8e15ebef85c77f7486f92c6430ca6f30785 (diff) | |
download | go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar.gz go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar.bz2 go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar.lz go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar.xz go-tangerine-90c4493a105ef33c1d10735489dce5a42c30b282.tar.zst go-tangerine-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/backend.go')
-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 { |