Skip to content

Commit efd5191

Browse files
remove unsed function checkFirstReceivedSignature
1 parent 8945532 commit efd5191

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

consensus/leader.go

-13
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ func (consensus *Consensus) announce(block *types.Block) {
9393
consensus.switchPhase("Announce", FBFTPrepare)
9494
}
9595

96-
func (consensus *Consensus) checkFirstReceivedSignature(signerCount int64, phase quorum.Phase) (bool, bool) {
97-
hasMultiBlsKeys := len(consensus.priKey) > 0
98-
if hasMultiBlsKeys {
99-
var myPubkeys []bls.SerializedPublicKey
100-
for _, key := range consensus.priKey {
101-
myPubkeys = append(myPubkeys, key.Pub.Bytes)
102-
}
103-
mySignsCount := consensus.decider.GetBallotsCount(phase, myPubkeys)
104-
return true, signerCount == mySignsCount
105-
}
106-
return false, false
107-
}
108-
10996
// this method is called for each validator sent their vote message
11097
func (consensus *Consensus) onPrepare(recvMsg *FBFTMessage) {
11198
// TODO(audit): make FBFT lookup using map instead of looping through all items.

0 commit comments

Comments
 (0)