diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-12 13:54:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | cb49d3ced400076fb5d58b98c5e33edece2aa2d4 (patch) | |
tree | a53df3d3af9434e658dbb40da635936ea5538dea /dex/api_backend.go | |
parent | 99c57e329cdc2d4c75305d6df8463f77c71e608d (diff) | |
download | dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar.gz dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar.bz2 dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar.lz dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar.xz dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.tar.zst dexon-cb49d3ced400076fb5d58b98c5e33edece2aa2d4.zip |
dex: governance: implement governance interface
Diffstat (limited to 'dex/api_backend.go')
-rw-r--r-- | dex/api_backend.go | 7 |
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() |