Skip to content

Commit

Permalink
Removed multiSigBitmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen committed Dec 23, 2024
1 parent b17d14c commit a8b20ba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ type Consensus struct {
prepareBitmap *bls_cosi.Mask
commitBitmap *bls_cosi.Mask

multiSigBitmap *bls_cosi.Mask // Bitmap for parsing multisig bitmap from validators

pendingCXReceipts map[utils.CXKey]*types.CXReceiptsProof // All the receipts received but not yet processed for Consensus
// Registry for services.
registry *registry.Registry
Expand Down
3 changes: 0 additions & 3 deletions consensus/consensus_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ func (consensus *Consensus) updateBitmaps() {
members := consensus.decider.Participants()
prepareBitmap := bls_cosi.NewMask(members)
commitBitmap := bls_cosi.NewMask(members)
multiSigBitmap := bls_cosi.NewMask(members)
consensus.prepareBitmap = prepareBitmap
consensus.commitBitmap = commitBitmap
consensus.multiSigBitmap = multiSigBitmap

}

func (consensus *Consensus) sendLastSignPower() {
Expand Down
3 changes: 2 additions & 1 deletion consensus/fbft_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ func (consensus *Consensus) parseFBFTMessage(msg *msg_pb.Message) (*FBFTMessage,
copy(pbftMsg.SenderPubkeys[0].Bytes[:], consensusMsg.SenderPubkey[:])
} else {
// else, it should be a multi-key message where the bitmap is populated
pubKeys, err := consensus.multiSigBitmap.GetSignedPubKeysFromBitmap(pbftMsg.SenderPubkeyBitmap)
members := consensus.decider.Participants()
pubKeys, err := bls_cosi.NewMask(members).GetSignedPubKeysFromBitmap(pbftMsg.SenderPubkeyBitmap)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a8b20ba

Please sign in to comment.