diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-04 12:15:06 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-04 12:15:06 +0800 |
commit | 0475adf7692697df91d359d67f7298574adfe327 (patch) | |
tree | 7c1dae7d4e8690ecd2b2097233bd534db0fb93ca /core/dkg-tsig-protocol_test.go | |
parent | ab2d2d131cadb28a59b51dc5d1142ef8845e2f88 (diff) | |
download | dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.gz dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.bz2 dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.lz dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.xz dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.tar.zst dexon-consensus-0475adf7692697df91d359d67f7298574adfe327.zip |
core/crypto/dkg: concurrent access for gpk (#548)
* core/crypto/dkg: add benchmark
* core/crypto/dkg: concurrent access for gpk
Diffstat (limited to 'core/dkg-tsig-protocol_test.go')
-rw-r--r-- | core/dkg-tsig-protocol_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/dkg-tsig-protocol_test.go b/core/dkg-tsig-protocol_test.go index f6909e8..89fd105 100644 --- a/core/dkg-tsig-protocol_test.go +++ b/core/dkg-tsig-protocol_test.go @@ -294,7 +294,7 @@ func (s *DKGTSIGProtocolTestSuite) TestErrMPKRegistered() { Round: round, Reset: reset, DKGID: typesDKG.NewID(ID), - PublicKeyShares: *mpk, + PublicKeyShares: *mpk.Move(), }) } gov.AddDKGMasterPublicKey(receiver.mpk) @@ -995,7 +995,7 @@ func (s *DKGTSIGProtocolTestSuite) TestUnexpectedDKGResetCount() { Round: round, Reset: reset + 1, DKGID: typesDKG.NewID(sourceID), - PublicKeyShares: *mpk, + PublicKeyShares: *mpk.Move(), }) err = protocols[sourceID].processMasterPublicKeys( []*typesDKG.MasterPublicKey{receivers[sourceID].mpk}) @@ -1031,7 +1031,7 @@ func benchmarkDKGGroupPubliKey(k, n int, b *testing.B) { Round: round, Reset: reset, DKGID: typesDKG.NewID(types.NewNodeID(pk)), - PublicKeyShares: *pubShare, + PublicKeyShares: *pubShare.Move(), }) } @@ -1075,7 +1075,7 @@ func benchmarkDKGNodePubliKeys(k, n int, b *testing.B) { Round: round, Reset: reset, DKGID: typesDKG.NewID(types.NewNodeID(pk)), - PublicKeyShares: *pubShare, + PublicKeyShares: *pubShare.Move(), }) } @@ -1119,7 +1119,7 @@ func benchmarkCalcQualified(k, n int, b *testing.B) { Round: round, Reset: reset, DKGID: typesDKG.NewID(types.NewNodeID(pk)), - PublicKeyShares: *pubShare, + PublicKeyShares: *pubShare.Move(), }) } |