aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-24 21:04:58 +0800
committerobscuren <geffobscura@gmail.com>2015-04-24 21:04:58 +0800
commit31f82eb3347454f64f3d41de3087109d09597806 (patch)
treeec641ffa199d3139e8e142dbe3c6e71be0df4fd9 /eth/backend.go
parentb86e7526e12a5a49c1739ec02d3c1c5cc667dcb3 (diff)
downloaddexon-31f82eb3347454f64f3d41de3087109d09597806.tar.gz
dexon-31f82eb3347454f64f3d41de3087109d09597806.tar.zst
dexon-31f82eb3347454f64f3d41de3087109d09597806.zip
eth, eth/downloader: don't require td on downloader. Fixed tests
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 356e7fd1a..d0a56de1c 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -217,7 +217,7 @@ func New(config *Config) (*Ethereum, error) {
}
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux())
- eth.downloader = downloader.New(eth.chainManager.HasBlock, eth.chainManager.InsertChain, eth.chainManager.Td)
+ eth.downloader = downloader.New(eth.chainManager.HasBlock, eth.chainManager.InsertChain)
eth.pow = ethash.New(eth.chainManager)
eth.txPool = core.NewTxPool(eth.EventMux(), eth.chainManager.State)
eth.blockProcessor = core.NewBlockProcessor(stateDb, extraDb, eth.pow, eth.txPool, eth.chainManager, eth.EventMux())
@@ -448,7 +448,7 @@ func (self *Ethereum) SuggestPeer(nodeURL string) error {
}
func (s *Ethereum) Stop() {
- s.txSub.Unsubscribe() // quits txBroadcastLoop
+ s.txSub.Unsubscribe() // quits txBroadcastLoop
s.protocolManager.Stop()
s.txPool.Stop()