[consensus] change one error log level, and removed quorum achieve check in onCommitted

pull/3626/head
Jacky Wang 4 years ago
parent e51bdbdc19
commit 54ab774353
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 6
      consensus/validator.go

@ -269,7 +269,7 @@ func (consensus *Consensus) onCommitted(recvMsg *FBFTMessage) {
}
sigBytes, bitmap, err := chain.ParseCommitSigAndBitmap(recvMsg.Payload)
if err != nil {
consensus.getLogger().Info().Err(err).
consensus.getLogger().Error().Err(err).
Uint64("blockNum", recvMsg.BlockNum).
Uint64("viewID", recvMsg.ViewID).
Str("blockHash", recvMsg.BlockHash.Hex()).
@ -291,10 +291,6 @@ func (consensus *Consensus) onCommitted(recvMsg *FBFTMessage) {
consensus.getLogger().Error().Err(err).Msg("[OnCommitted] readSignatureBitmapPayload failed")
return
}
if !consensus.Decider.IsQuorumAchievedByMask(mask) {
consensus.getLogger().Warn().Hex("sigBytes bitmap", recvMsg.Payload).Msgf("[OnCommitted] Quorum Not achieved.")
return
}
consensus.FBFTLog.AddVerifiedMessage(recvMsg)
consensus.aggregatedCommitSig = aggSig
consensus.commitBitmap = mask

Loading…
Cancel
Save