aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/node.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-04 18:30:03 +0800
committerGitHub <noreply@github.com>2019-03-04 18:30:03 +0800
commitd4b4c8a05e94f66c85e7b4238ae5947b26f13c40 (patch)
treec2a10260820ac3a152506000aa03c41cd244d84f /simulation/node.go
parent603f8d6d999c1bb5b16c2f5dfc88f8bc9da7fc33 (diff)
downloadtangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.gz
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.bz2
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.lz
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.xz
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.zst
tangerine-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.zip
core: first few round will not have DKG (#455)
* core: Add DKGDelayRound constant * core: use constant value * core, utils: set DKGDelayRound for utils. * test: add dkgDelayRound to state * core: do not run dkg and crs for round < DKGDelayRound * fix test
Diffstat (limited to 'simulation/node.go')
-rw-r--r--simulation/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/node.go b/simulation/node.go
index 758f980..fc5be90 100644
--- a/simulation/node.go
+++ b/simulation/node.go
@@ -90,7 +90,7 @@ func newNode(prvKey crypto.PrivateKey, logger common.Logger,
}
// Sync config to state in governance.
gov, err := test.NewGovernance(
- test.NewState(
+ test.NewState(core.DKGDelayRound,
[]crypto.PublicKey{pubKey}, time.Millisecond, logger, true),
core.ConfigRoundShift)
if err != nil {