From 2a8dfaab62876a38cf697ac9b972f2ecd3153e24 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 15 Oct 2018 11:34:11 +0800 Subject: dex: interface update --- dex/backend.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dex') 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 } -- cgit v1.2.3