diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-17 09:56:23 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-17 09:56:23 +0800 |
commit | 4b40c1b8990d2a371a77018feea32d038163f2ec (patch) | |
tree | b482aee945e1f60c6c9c9efd86c39abe812a353b /core/consensus_test.go | |
parent | b636901c60aa666c6c6b532d06e78b529537d315 (diff) | |
download | dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar.gz dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar.bz2 dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar.lz dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar.xz dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.tar.zst dexon-consensus-4b40c1b8990d2a371a77018feea32d038163f2ec.zip |
dkg: add reset field (#492)
* Add Reset fields to DKG types
* Fix crypto part after adding Reset field
* Prohibit DKG messages with different resetCount
* Add TODO
* Add reset parameter to dkgProtocol constructor
* Add TODO
* Fix inconsist hash to prepare CRS
* Add reset parameter when runnning DKG
* Fix test for utils.RoundEvent
* Add dummy test to prohibit DKG messages with unexpected reset count
* Fix test.App
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index 75f5422..a7ac8c4 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -235,7 +235,7 @@ func (s *ConsensusTestSuite) TestRegisteredDKGRecover() { s.Require().Nil(con.cfgModule.dkg) - con.cfgModule.registerDKG(0, 10) + con.cfgModule.registerDKG(0, 0, 10) _, newCon := s.prepareConsensusWithDB(dMoment, gov, prvKeys[0], conn, dbInst) @@ -269,7 +269,7 @@ func (s *ConsensusTestSuite) TestDKGCRS() { } time.Sleep(gov.Configuration(0).MinBlockInterval * 4) for _, con := range cons { - go con.runDKG(0, gov.Configuration(0)) + go con.runDKG(0, 0, gov.Configuration(0)) } for _, con := range cons { func() { |