Skip to content

Commit a8b20ba

Browse files
committed
Removed multiSigBitmap.
1 parent b17d14c commit a8b20ba

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

consensus/consensus.go

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ type Consensus struct {
7474
prepareBitmap *bls_cosi.Mask
7575
commitBitmap *bls_cosi.Mask
7676

77-
multiSigBitmap *bls_cosi.Mask // Bitmap for parsing multisig bitmap from validators
78-
7977
pendingCXReceipts map[utils.CXKey]*types.CXReceiptsProof // All the receipts received but not yet processed for Consensus
8078
// Registry for services.
8179
registry *registry.Registry

consensus/consensus_service.go

-3
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,8 @@ func (consensus *Consensus) updateBitmaps() {
141141
members := consensus.decider.Participants()
142142
prepareBitmap := bls_cosi.NewMask(members)
143143
commitBitmap := bls_cosi.NewMask(members)
144-
multiSigBitmap := bls_cosi.NewMask(members)
145144
consensus.prepareBitmap = prepareBitmap
146145
consensus.commitBitmap = commitBitmap
147-
consensus.multiSigBitmap = multiSigBitmap
148-
149146
}
150147

151148
func (consensus *Consensus) sendLastSignPower() {

consensus/fbft_log.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ func (consensus *Consensus) parseFBFTMessage(msg *msg_pb.Message) (*FBFTMessage,
344344
copy(pbftMsg.SenderPubkeys[0].Bytes[:], consensusMsg.SenderPubkey[:])
345345
} else {
346346
// else, it should be a multi-key message where the bitmap is populated
347-
pubKeys, err := consensus.multiSigBitmap.GetSignedPubKeysFromBitmap(pbftMsg.SenderPubkeyBitmap)
347+
members := consensus.decider.Participants()
348+
pubKeys, err := bls_cosi.NewMask(members).GetSignedPubKeysFromBitmap(pbftMsg.SenderPubkeyBitmap)
348349
if err != nil {
349350
return nil, err
350351
}

0 commit comments

Comments
 (0)