diff --git a/consensus/consensus.go b/consensus/consensus.go index 64297be87c..1379898828 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -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 diff --git a/consensus/consensus_service.go b/consensus/consensus_service.go index ac809a6dca..94612d37e2 100644 --- a/consensus/consensus_service.go +++ b/consensus/consensus_service.go @@ -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() { diff --git a/consensus/fbft_log.go b/consensus/fbft_log.go index 60c4d248e1..604f5c2776 100644 --- a/consensus/fbft_log.go +++ b/consensus/fbft_log.go @@ -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 }