diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-12-18 10:02:30 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233 (patch) | |
tree | 62340aff3a722cd2a8ccbf36193839f1cc26b8e9 /dex/handler.go | |
parent | c072ba693976104141caa2bb0828cc1230c4bc00 (diff) | |
download | dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar.gz dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar.bz2 dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar.lz dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar.xz dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.tar.zst dexon-9b24bf9dc17fa8d1fcf658cd2d7a7b4754e65233.zip |
vendor: sync to latest core (#91)
- Implement new methods in db to cache DKG
private key.
- Implement new methods in db to cache compaction
chain tip.
Diffstat (limited to 'dex/handler.go')
-rw-r--r-- | dex/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex/handler.go b/dex/handler.go index 620320f49..9174d8516 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -53,7 +53,7 @@ import ( "github.com/dexon-foundation/dexon/core" "github.com/dexon-foundation/dexon/core/types" "github.com/dexon-foundation/dexon/crypto" - "github.com/dexon-foundation/dexon/dex/blockdb" + dexDB "github.com/dexon-foundation/dexon/dex/db" "github.com/dexon-foundation/dexon/dex/downloader" "github.com/dexon-foundation/dexon/dex/fetcher" "github.com/dexon-foundation/dexon/ethdb" @@ -158,7 +158,7 @@ func NewProtocolManager( nodeTable: tab, gov: gov, blockchain: blockchain, - cache: newCache(5120, blockdb.NewDatabase(chaindb)), + cache: newCache(5120, dexDB.NewDatabase(chaindb)), chainconfig: config, newPeerCh: make(chan *peer), noMorePeers: make(chan struct{}), |