aboutsummaryrefslogtreecommitdiffstats
path: root/core/dkg-tsig-protocol_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-13 16:28:24 +0800
committerGitHub <noreply@github.com>2018-11-13 16:28:24 +0800
commit01642721a7768218e7f9a5be8f0829eb8ae7c7b1 (patch)
treea8ebe89570de317d7be047f32c8c35334e78c919 /core/dkg-tsig-protocol_test.go
parent86838fe70789292de0851f82426e5241c0f0cc96 (diff)
downloaddexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.gz
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.zst
dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.zip
core: expose implicit round shift (#321)
Diffstat (limited to 'core/dkg-tsig-protocol_test.go')
-rw-r--r--core/dkg-tsig-protocol_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/dkg-tsig-protocol_test.go b/core/dkg-tsig-protocol_test.go
index 27799d2..282dc0f 100644
--- a/core/dkg-tsig-protocol_test.go
+++ b/core/dkg-tsig-protocol_test.go
@@ -142,7 +142,7 @@ func (s *DKGTSIGProtocolTestSuite) TestDKGTSIGProtocol() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -247,7 +247,7 @@ func (s *DKGTSIGProtocolTestSuite) TestNackComplaint() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -293,7 +293,7 @@ func (s *DKGTSIGProtocolTestSuite) TestComplaint() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -358,7 +358,7 @@ func (s *DKGTSIGProtocolTestSuite) TestAntiComplaint() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -415,7 +415,7 @@ func (s *DKGTSIGProtocolTestSuite) TestEncorceNackComplaint() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -469,7 +469,7 @@ func (s *DKGTSIGProtocolTestSuite) TestQualifyIDs() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, _ := s.newProtocols(k, n, round)
@@ -534,7 +534,7 @@ func (s *DKGTSIGProtocolTestSuite) TestPartialSignature() {
round := uint64(1)
_, pubKeys, err := test.NewKeys(5)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
receivers, protocols := s.newProtocols(k, n, round)
@@ -656,7 +656,7 @@ func (s *DKGTSIGProtocolTestSuite) TestTSigVerifierCache() {
n := 10
_, pubKeys, err := test.NewKeys(n)
s.Require().NoError(err)
- gov, err := test.NewGovernance(pubKeys, 100)
+ gov, err := test.NewGovernance(pubKeys, 100, ConfigRoundShift)
s.Require().NoError(err)
gov.CatchUpWithRound(10)
for i := 0; i < 10; i++ {