aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-15 14:14:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commit2e223e7fdae87de6a44b150e92d3f1a83690c781 (patch)
tree784ca48565c32753ca0438f4037ec7a43e05c5d4
parentfdda4c71d76129c0e330883036f32c3d8a29b4b1 (diff)
downloaddexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar.gz
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar.bz2
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar.lz
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar.xz
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.tar.zst
dexon-2e223e7fdae87de6a44b150e92d3f1a83690c781.zip
dex: set tmp dMoment for testing
-rw-r--r--dex/backend.go3
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
}