aboutsummaryrefslogtreecommitdiffstats
path: root/dex/api_backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-12 13:54:32 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit1f995d3b7eaa8d15203b8b754542f5665ff98615 (patch)
treeb45bdf5e599c18affe6b8cc2173a1b638dc8fd0e /dex/api_backend.go
parentbeeb9585461f2d4ebd2a12b2e48ca85cd5ea42d1 (diff)
downloaddexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar.gz
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar.bz2
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar.lz
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar.xz
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.tar.zst
dexon-1f995d3b7eaa8d15203b8b754542f5665ff98615.zip
dex: governance: implement governance interface
Diffstat (limited to 'dex/api_backend.go')
-rw-r--r--dex/api_backend.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dex/api_backend.go b/dex/api_backend.go
index 8a147aab2..7f2677dc8 100644
--- a/dex/api_backend.go
+++ b/dex/api_backend.go
@@ -29,6 +29,7 @@ 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"
@@ -181,9 +182,9 @@ func (b *DexAPIBackend) SubscribeNewTxsEvent(ch chan<- core.NewTxsEvent) event.S
return b.dex.TxPool().SubscribeNewTxsEvent(ch)
}
-//func (b *DexAPIBackend) Downloader() *downloader.Downloader {
-// return b.dex.Downloader()
-//}
+func (b *DexAPIBackend) Downloader() *downloader.Downloader {
+ return b.dex.Downloader()
+}
func (b *DexAPIBackend) ProtocolVersion() int {
return b.dex.DexVersion()