diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-15 15:19:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 15:19:27 +0800 |
commit | 508cf09792a35f0129df9b04efa471074e61a36f (patch) | |
tree | 19c7e23860c5e62b0c93acbb780da88066b2fa97 /core/dkg-tsig-protocol_test.go | |
parent | a624d79f6bc1b3ca1567c6d16e143aa009f04764 (diff) | |
download | dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar.gz dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar.bz2 dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar.lz dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar.xz dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.tar.zst dexon-consensus-508cf09792a35f0129df9b04efa471074e61a36f.zip |
core: Change DKG threshold (#204)
Diffstat (limited to 'core/dkg-tsig-protocol_test.go')
-rw-r--r-- | core/dkg-tsig-protocol_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dkg-tsig-protocol_test.go b/core/dkg-tsig-protocol_test.go index 8822de3..d03d811 100644 --- a/core/dkg-tsig-protocol_test.go +++ b/core/dkg-tsig-protocol_test.go @@ -136,7 +136,7 @@ func (s *DKGTSIGProtocolTestSuite) newProtocols(k, n int, round uint64) ( // recovering threshold signature. // All participants are good people in this test. func (s *DKGTSIGProtocolTestSuite) TestDKGTSIGProtocol() { - k := 3 + k := 2 n := 10 round := uint64(1) gov, err := test.NewGovernance(5, 100) @@ -228,7 +228,7 @@ func (s *DKGTSIGProtocolTestSuite) TestDKGTSIGProtocol() { psig.Signature, err = s.prvKeys[nID].Sign(hashDKGPartialSignature(psig)) s.Require().NoError(err) s.Require().NoError(tsig.processPartialSignature(psig)) - if len(tsig.sigs) > k { + if len(tsig.sigs) >= k { break } } |