diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 11:34:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:53 +0800 |
commit | 2b641040846f30741999efade420c200582ebb9c (patch) | |
tree | d9aecfc0bbac6c66cd528e1f52fd920fee85bcd7 | |
parent | 1a720a63dcbff54a8cead10bf1958b4ddfdd9ba6 (diff) | |
download | dexon-2b641040846f30741999efade420c200582ebb9c.tar dexon-2b641040846f30741999efade420c200582ebb9c.tar.gz dexon-2b641040846f30741999efade420c200582ebb9c.tar.bz2 dexon-2b641040846f30741999efade420c200582ebb9c.tar.lz dexon-2b641040846f30741999efade420c200582ebb9c.tar.xz dexon-2b641040846f30741999efade420c200582ebb9c.tar.zst dexon-2b641040846f30741999efade420c200582ebb9c.zip |
dex: interface update
-rw-r--r-- | dex/backend.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go index caac0fe21..3d59d9f2c 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -19,6 +19,7 @@ package dex import ( "fmt" + "time" dexCore "github.com/dexon-foundation/dexon-consensus-core/core" "github.com/dexon-foundation/dexon-consensus-core/core/blockdb" @@ -163,7 +164,8 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { dex.network = NewDexconNetwork(pm) privKey := coreEcdsa.NewPrivateKeyFromECDSA(config.PrivateKey) - dex.consensus = dexCore.NewConsensus(dex.app, dex.governance, db, dex.network, privKey) + dex.consensus = dexCore.NewConsensus(time.Now().Add(10*time.Second), + dex.app, dex.governance, db, dex.network, privKey) return dex, nil } |