aboutsummaryrefslogtreecommitdiffstats
path: root/dex
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-04-09 21:32:49 +0800
commitbd603202941b25be65146de5d04cd354fc496cd3 (patch)
treed3f6fb2f3af7ada2f70448f1375817c1e6460c99 /dex
parent68fa53f29bb7c5adc40cb3de3091be527bfb49b8 (diff)
downloaddexon-bd603202941b25be65146de5d04cd354fc496cd3.tar
dexon-bd603202941b25be65146de5d04cd354fc496cd3.tar.gz
dexon-bd603202941b25be65146de5d04cd354fc496cd3.tar.bz2
dexon-bd603202941b25be65146de5d04cd354fc496cd3.tar.lz
dexon-bd603202941b25be65146de5d04cd354fc496cd3.tar.xz
dexon-bd603202941b25be65146de5d04cd354fc496cd3.tar.zst
dexon-bd603202941b25be65146de5d04cd354fc496cd3.zip
dex: interface update
Diffstat (limited to 'dex')
-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
}