From 7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 15 Oct 2018 14:14:11 +0800 Subject: dex: set tmp dMoment for testing --- dex/backend.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dex/backend.go') 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 } -- cgit