aboutsummaryrefslogtreecommitdiffstats
path: root/les/api_backend.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-09 14:49:23 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit5aaccf466773e60c93ab150d89abd950bd43ca28 (patch)
tree2790899da83803dfad804c77209c312704e72a60 /les/api_backend.go
parent4e158ea3b851e3886f5682a78c69ce06e3690865 (diff)
downloadgo-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/api_backend.go')
-rw-r--r--les/api_backend.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/les/api_backend.go b/les/api_backend.go
index 3c0637462..148b29c0b 100644
--- a/les/api_backend.go
+++ b/les/api_backend.go
@@ -29,10 +29,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/light"
"github.com/dexon-foundation/dexon/params"
"github.com/dexon-foundation/dexon/rpc"
@@ -163,7 +163,7 @@ func (b *LesApiBackend) SubscribeRemovedLogsEvent(ch chan<- core.RemovedLogsEven
return b.eth.blockchain.SubscribeRemovedLogsEvent(ch)
}
-func (b *LesApiBackend) Downloader() *downloader.Downloader {
+func (b *LesApiBackend) Downloader() ethapi.Downloader {
return b.eth.Downloader()
}