diff options
author | Sonic <sonic@dexon.org> | 2018-11-09 14:49:23 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | e508bf0a8074e803cbcdaa162fd3289de2afda94 (patch) | |
tree | ac10c3cced1f817d12bd2e4c0c9e50d8a1d7e3bd /eth/api_backend.go | |
parent | 202b8a467827118e1243b98dbd8111c3d806211e (diff) | |
download | dexon-e508bf0a8074e803cbcdaa162fd3289de2afda94.tar.gz 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 'eth/api_backend.go')
-rw-r--r-- | eth/api_backend.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/api_backend.go b/eth/api_backend.go index 358e3512e..b8a525f02 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -28,10 +28,10 @@ import ( "github.com/dexon-foundation/dexon/core/state" "github.com/dexon-foundation/dexon/core/types" "github.com/dexon-foundation/dexon/core/vm" - "github.com/dexon-foundation/dexon/eth/downloader" "github.com/dexon-foundation/dexon/eth/gasprice" "github.com/dexon-foundation/dexon/ethdb" "github.com/dexon-foundation/dexon/event" + "github.com/dexon-foundation/dexon/internal/ethapi" "github.com/dexon-foundation/dexon/params" "github.com/dexon-foundation/dexon/rpc" ) @@ -189,7 +189,7 @@ func (b *EthAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.S return b.eth.TxPool().SubscribeNewTxsEvent(ch) } -func (b *EthAPIBackend) Downloader() *downloader.Downloader { +func (b *EthAPIBackend) Downloader() ethapi.Downloader { return b.eth.Downloader() } |