aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-09 14:49:23 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commita31ae3fde50d3402e838483c985dbe50d753b48c (patch)
treebd58f09231948a732bb23db753ca83605f85bffe /eth/backend.go
parent089257a3da86184c66f666ff8e119e1ca7850357 (diff)
downloaddexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar.gz
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar.bz2
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar.lz
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar.xz
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.tar.zst
dexon-a31ae3fde50d3402e838483c985dbe50d753b48c.zip
dex: use dex/downloader in dex
To compatible with ethereum code base, make Downloader a interface in internal/ethapi
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/eth/backend.go b/eth/backend.go
index a6a558823..90cfa1a9a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -462,16 +462,16 @@ func (s *Ethereum) StopMining() {
func (s *Ethereum) IsMining() bool { return s.miner.Mining() }
func (s *Ethereum) Miner() *miner.Miner { return s.miner }
-func (s *Ethereum) AccountManager() *accounts.Manager { return s.accountManager }
-func (s *Ethereum) BlockChain() *core.BlockChain { return s.blockchain }
-func (s *Ethereum) TxPool() *core.TxPool { return s.txPool }
-func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux }
-func (s *Ethereum) Engine() consensus.Engine { return s.engine }
-func (s *Ethereum) ChainDb() ethdb.Database { return s.chainDb }
-func (s *Ethereum) IsListening() bool { return true } // Always listening
-func (s *Ethereum) EthVersion() int { return int(s.protocolManager.SubProtocols[0].Version) }
-func (s *Ethereum) NetVersion() uint64 { return s.networkID }
-func (s *Ethereum) Downloader() *downloader.Downloader { return s.protocolManager.downloader }
+func (s *Ethereum) AccountManager() *accounts.Manager { return s.accountManager }
+func (s *Ethereum) BlockChain() *core.BlockChain { return s.blockchain }
+func (s *Ethereum) TxPool() *core.TxPool { return s.txPool }
+func (s *Ethereum) EventMux() *event.TypeMux { return s.eventMux }
+func (s *Ethereum) Engine() consensus.Engine { return s.engine }
+func (s *Ethereum) ChainDb() ethdb.Database { return s.chainDb }
+func (s *Ethereum) IsListening() bool { return true } // Always listening
+func (s *Ethereum) EthVersion() int { return int(s.protocolManager.SubProtocols[0].Version) }
+func (s *Ethereum) NetVersion() uint64 { return s.networkID }
+func (s *Ethereum) Downloader() ethapi.Downloader { return s.protocolManager.downloader }
// Protocols implements node.Service, returning all the currently configured
// network protocols to start.