aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-04 17:26:46 +0800
committerGitHub <noreply@github.com>2018-10-04 17:26:46 +0800
commit6773c56fe29511aca0f4345e9fd3758ca05e174f (patch)
tree4cac43ea71124e9fea092397756e1b0f8ce38f01 /core/consensus_test.go
parent604dd7e52c8cbffd7646205c464f7333d215ceb6 (diff)
downloadtangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar.gz
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar.bz2
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar.lz
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar.xz
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.tar.zst
tangerine-consensus-6773c56fe29511aca0f4345e9fd3758ca05e174f.zip
core: Use event to run DKG and CRS in Consensus. (#171)
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r--core/consensus_test.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go
index 9439adb..e8615a2 100644
--- a/core/consensus_test.go
+++ b/core/consensus_test.go
@@ -436,7 +436,6 @@ func (s *ConsensusTestSuite) TestDKGCRS() {
gov, err := test.NewGovernance(n, lambda*time.Millisecond)
s.Require().Nil(err)
gov.RoundInterval = 200 * lambda * time.Millisecond
- config := gov.Configuration(0)
prvKeys := gov.PrivateKeys()
cons := map[types.NodeID]*Consensus{}
for _, key := range prvKeys {
@@ -464,10 +463,6 @@ func (s *ConsensusTestSuite) TestDKGCRS() {
crsFinish <- struct{}{}
}(con)
}
- time.Sleep(config.RoundInterval * 3 / 4)
- for _, con := range cons {
- con.Stop()
- }
for range cons {
<-crsFinish
}