diff options
| author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-04 18:30:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-04 18:30:03 +0800 |
| commit | d4b4c8a05e94f66c85e7b4238ae5947b26f13c40 (patch) | |
| tree | c2a10260820ac3a152506000aa03c41cd244d84f /simulation | |
| parent | 603f8d6d999c1bb5b16c2f5dfc88f8bc9da7fc33 (diff) | |
| download | dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.gz dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.bz2 dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.lz dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.xz dexon-consensus-d4b4c8a05e94f66c85e7b4238ae5947b26f13c40.tar.zst dexon-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')
| -rw-r--r-- | simulation/node.go | 2 |
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 { |
