diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 11:34:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 2a8dfaab62876a38cf697ac9b972f2ecd3153e24 (patch) | |
tree | de900cfd91caca95aa9ce18e2c973d6bd330e743 | |
parent | 56b4929dc3f0942ce30dfaae41f99e64ac4700eb (diff) | |
download | dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar.gz dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar.bz2 dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar.lz dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar.xz dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.tar.zst dexon-2a8dfaab62876a38cf697ac9b972f2ecd3153e24.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 6669e1f15..f205362e0 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 } |