aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-15 14:14:11 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commitb5dac78dbe5c8351de679385d5257b92028e8ea3 (patch)
treec847910ddaa364b746d99a48d0c9a758a437d73b /dex
parente628e63ba7c0b43872be97411d9b68783afb0a95 (diff)
downloadgo-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')
-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
}