diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 14:14:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | b5dac78dbe5c8351de679385d5257b92028e8ea3 (patch) | |
tree | c847910ddaa364b746d99a48d0c9a758a437d73b /dex/backend.go | |
parent | e628e63ba7c0b43872be97411d9b68783afb0a95 (diff) | |
download | go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar.gz go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar.bz2 go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar.lz go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar.xz go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.tar.zst go-tangerine-b5dac78dbe5c8351de679385d5257b92028e8ea3.zip |
dex: set tmp dMoment for testing
Diffstat (limited to 'dex/backend.go')
-rw-r--r-- | dex/backend.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dex/backend.go b/dex/backend.go index 3ceef039b..a9af65951 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -166,7 +166,8 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { dex.network = NewDexconNetwork(pm) privKey := coreEcdsa.NewPrivateKeyFromECDSA(config.PrivateKey) - dex.consensus = dexCore.NewConsensus(time.Now().Add(10*time.Second), + dMoment := time.Date(2018, 10, 15, 6, 0, 0, 0, time.UTC) + dex.consensus = dexCore.NewConsensus(dMoment, dex.app, dex.governance, db, dex.network, privKey) return dex, nil } |