diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-15 14:14:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:53 +0800 |
commit | 76ff1cd5a6002be4d9ef9d131071da0c293c8b37 (patch) | |
tree | 04e2592faf805cb5163ca91d26b01c1efe086eb7 /dex | |
parent | 44ec6086dfe48e6d7e78f2bc78eb58d851665f95 (diff) | |
download | dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar.gz dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar.bz2 dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar.lz dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar.xz dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.tar.zst dexon-76ff1cd5a6002be4d9ef9d131071da0c293c8b37.zip |
dex: set tmp dMoment for testing
Diffstat (limited to 'dex')
-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 } |