diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 11:34:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 02a3ca606c8b97e58bc0e5936e89a94e33077fe9 (patch) | |
tree | f1b83b8eacdd502f76014ced359a5ef5dd7e1641 /dex | |
parent | aa876579afa9a6ff23f70ae3d2ec171f37bb5c6a (diff) | |
download | go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar.gz go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar.bz2 go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar.lz go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar.xz go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.tar.zst go-tangerine-02a3ca606c8b97e58bc0e5936e89a94e33077fe9.zip |
dex: interface update
Diffstat (limited to 'dex')
-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 } |