diff options
author | Sonic <sonic@dexon.org> | 2018-11-09 14:49:23 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:18 +0800 |
commit | 5aaccf466773e60c93ab150d89abd950bd43ca28 (patch) | |
tree | 2790899da83803dfad804c77209c312704e72a60 /les/backend.go | |
parent | 4e158ea3b851e3886f5682a78c69ce06e3690865 (diff) | |
download | go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar.gz go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar.bz2 go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar.lz go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar.xz go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.tar.zst go-tangerine-5aaccf466773e60c93ab150d89abd950bd43ca28.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.go | 12 |
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. |