diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-17 16:33:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 16:33:51 +0800 |
commit | 6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39 (patch) | |
tree | 20dbf51d8185f01bfdca924b6c220c63505d2862 /integration_test/utils.go | |
parent | 1fafb0a4b992ff225796d01f2271c2573967abae (diff) | |
download | dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.gz dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.zst dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.zip |
core: genesis consensus timestamp (#217)
* Refine the initial value for empty time slot.
* Fix DATA RACE
netowrkConnection is reset for each test,
however, our Consensus instance is not
stopped after one test is finished, they
might continue use network interface for
a while.
Diffstat (limited to 'integration_test/utils.go')
-rw-r--r-- | integration_test/utils.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/integration_test/utils.go b/integration_test/utils.go index 6c665ad..d9c4995 100644 --- a/integration_test/utils.go +++ b/integration_test/utils.go @@ -25,6 +25,7 @@ func PrepareNodes( if err != nil { return } + dMoment := time.Now().UTC() for _, prvKey := range gov.PrivateKeys() { nID := types.NewNodeID(prvKey.PublicKey()) apps[nID] = test.NewApp() @@ -37,6 +38,7 @@ func PrepareNodes( gov, dbs[nID], prvKey, + dMoment, networkLatency, proposingLatency, ) |