Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tholonious committed Jun 26, 2023
1 parent 719f6f9 commit 1a614c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions lib/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ func createTestBlockHeaderVersion2(t *testing.T) *MsgDeSoHeader {
0x64, 0x65,
}

_, testBLSSignature := _generateValidatorVotingPublicKeyAndSignature(t)

testBitset := bitset.NewBitset().Set(0, true).Set(3, true)
_, testBLSSignature := _generateValidatorVotingPublicKeyAndSignature(t)

return &MsgDeSoHeader{
Version: 2,
Expand Down
6 changes: 1 addition & 5 deletions lib/pos_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ func TestValidatorTimeoutEncodeDecode(t *testing.T) {
aggregateSignature, err := bls.AggregateSignatures([]*bls.Signature{partialSignature1, partialSignature2})
require.NoError(t, err)

signersList := bitset.NewBitset()
signersList.Set(0, true)
signersList.Set(3, true)

originalMsg := MsgDeSoValidatorTimeout{
MsgVersion: MsgValidatorTimeoutVersion0,
ValidatorPublicKey: &PublicKey{},
Expand All @@ -63,7 +59,7 @@ func TestValidatorTimeoutEncodeDecode(t *testing.T) {
BlockHash: &BlockHash{},
ProposedInView: 999910,
ValidatorsVoteAggregatedSignature: &AggregatedBLSSignature{
SignersList: bitset.NewBitset(),
SignersList: bitset.NewBitset().Set(0, true).Set(3, true),
Signature: aggregateSignature,
},
},
Expand Down

0 comments on commit 1a614c3

Please sign in to comment.