diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 14:14:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b (patch) | |
tree | 414c26d94f53327f8290b238d11de9091bcf14e3 /dex/backend.go | |
parent | 11e0668717d8d493ef08c99de09303f758d36002 (diff) | |
download | dexon-7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b.tar.gz dexon-7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b.tar.zst dexon-7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b.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 } |