aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test/node.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-17 16:33:51 +0800
committerGitHub <noreply@github.com>2018-10-17 16:33:51 +0800
commit6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39 (patch)
tree20dbf51d8185f01bfdca924b6c220c63505d2862 /integration_test/node.go
parent1fafb0a4b992ff225796d01f2271c2573967abae (diff)
downloaddexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar
dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.gz
dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.bz2
dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.lz
dexon-consensus-6f1df59f8b32d30d5a7a0d9449f2dca698a8ac39.tar.xz
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/node.go')
-rw-r--r--integration_test/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integration_test/node.go b/integration_test/node.go
index 7e230a9..cf8be8c 100644
--- a/integration_test/node.go
+++ b/integration_test/node.go
@@ -81,11 +81,11 @@ func NewNode(
gov core.Governance,
db blockdb.BlockDatabase,
privateKey crypto.PrivateKey,
+ dMoment time.Time,
networkLatency test.LatencyModel,
proposingLatency test.LatencyModel) *Node {
var (
- dMoment = time.Now().UTC()
chainID = uint32(math.MaxUint32)
governanceConfig = gov.Configuration(0)
nodeSetKeys = gov.NodeSet(0)