aboutsummaryrefslogtreecommitdiffstats
path: root/dex/backend.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-15 11:34:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit2ca42f8c8ad8f88334b9f8c62737fd7278f4fb99 (patch)
treecd7a385da6d48d737760cfe16c4cd48fdb56ae6e /dex/backend.go
parentd5748b23f0c119e9e9f33b039b913d5af50e482e (diff)
downloaddexon-2ca42f8c8ad8f88334b9f8c62737fd7278f4fb99.tar.gz
dexon-2ca42f8c8ad8f88334b9f8c62737fd7278f4fb99.tar.zst
dexon-2ca42f8c8ad8f88334b9f8c62737fd7278f4fb99.zip
dex: interface update
Diffstat (limited to 'dex/backend.go')
-rw-r--r--dex/backend.go4
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
}