aboutsummaryrefslogtreecommitdiffstats
path: root/les/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-03-12 12:19:09 +0800
commite508bf0a8074e803cbcdaa162fd3289de2afda94 (patch)
treeac10c3cced1f817d12bd2e4c0c9e50d8a1d7e3bd /les/backend.go
parent202b8a467827118e1243b98dbd8111c3d806211e (diff)
downloaddexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.gz
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.bz2
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.lz
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.xz
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.zst
dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.zip
dex: use dex/downloader in dex
To compatible with ethereum code base, make Downloader a interface in internal/ethapi
Diffstat (limited to 'les/backend.go')
-rw-r--r--les/backend.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/les/backend.go b/les/backend.go
index 651f26ba6..b56222bba 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -215,12 +215,12 @@ func (s *LightEthereum) ResetWithGenesisBlock(gb *types.Block) {
s.blockchain.ResetWithGenesisBlock(gb)
}
-func (s *LightEthereum) BlockChain() *light.LightChain { return s.blockchain }
-func (s *LightEthereum) TxPool() *light.TxPool { return s.txPool }
-func (s *LightEthereum) Engine() consensus.Engine { return s.engine }
-func (s *LightEthereum) LesVersion() int { return int(ClientProtocolVersions[0]) }
-func (s *LightEthereum) Downloader() *downloader.Downloader { return s.protocolManager.downloader }
-func (s *LightEthereum) EventMux() *event.TypeMux { return s.eventMux }
+func (s *LightEthereum) BlockChain() *light.LightChain { return s.blockchain }
+func (s *LightEthereum) TxPool() *light.TxPool { return s.txPool }
+func (s *LightEthereum) Engine() consensus.Engine { return s.engine }
+func (s *LightEthereum) LesVersion() int { return int(ClientProtocolVersions[0]) }
+func (s *LightEthereum) Downloader() ethapi.Downloader { return s.protocolManager.downloader }
+func (s *LightEthereum) EventMux() *event.TypeMux { return s.eventMux }
// Protocols implements node.Service, returning all the currently configured
// network protocols to start.