aboutsummaryrefslogtreecommitdiffstats
path: root/core/dkg-tsig-protocol_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-09 11:59:19 +0800
committerGitHub <noreply@github.com>2018-10-09 11:59:19 +0800
commitdb07d005e2e5a9208620a8d0e5fcaedeaa6ed644 (patch)
tree860c7a1c2f5d30296f66b07ed4e59117eb265eb7 /core/dkg-tsig-protocol_test.go
parent9267d50de25ddf0f280eee797e2030ea989294e4 (diff)
downloaddexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.gz
dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.zst
dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.zip
core: Add round to DKG methods in gov. Change network interface name (#185)
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 9d66222..8822de3 100644
--- a/core/dkg-tsig-protocol_test.go
+++ b/core/dkg-tsig-protocol_test.go
@@ -145,7 +145,7 @@ func (s *DKGTSIGProtocolTestSuite) TestDKGTSIGProtocol() {
receivers, protocols := s.newProtocols(k, n, round)
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -250,7 +250,7 @@ func (s *DKGTSIGProtocolTestSuite) TestNackComplaint() {
byzantineID := s.nIDs[0]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -297,7 +297,7 @@ func (s *DKGTSIGProtocolTestSuite) TestComplaint() {
protocol := protocols[targetID]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -359,7 +359,7 @@ func (s *DKGTSIGProtocolTestSuite) TestAntiComplaint() {
thirdPerson := s.nIDs[2]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -414,7 +414,7 @@ func (s *DKGTSIGProtocolTestSuite) TestEncorceNackComplaint() {
thirdPerson := s.nIDs[2]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -464,7 +464,7 @@ func (s *DKGTSIGProtocolTestSuite) TestQualifyIDs() {
byzantineID := s.nIDs[0]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
// Test for nack complaints.
@@ -527,7 +527,7 @@ func (s *DKGTSIGProtocolTestSuite) TestPartialSignature() {
byzantineID := s.nIDs[0]
for _, receiver := range receivers {
- gov.AddDKGMasterPublicKey(receiver.mpk)
+ gov.AddDKGMasterPublicKey(round, receiver.mpk)
}
for _, protocol := range protocols {
@@ -553,7 +553,7 @@ func (s *DKGTSIGProtocolTestSuite) TestPartialSignature() {
s.Require().Len(recv.complaints, 1)
complaint, exist := recv.complaints[byzantineID]
s.Require().True(exist)
- gov.AddDKGComplaint(complaint)
+ gov.AddDKGComplaint(round, complaint)
}
// DKG is fininished.