From f2f235006a0947b1f5d31da61a80c02f7151919c Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 2 Nov 2020 15:30:03 -0800 Subject: [PATCH] fix commit override --- consensus/validator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/consensus/validator.go b/consensus/validator.go index a1f83de65..3837ddda4 100644 --- a/consensus/validator.go +++ b/consensus/validator.go @@ -290,10 +290,9 @@ func (consensus *Consensus) onCommitted(msg *msg_pb.Message) { mask.SetMask(commitSigBitmap[bls.BLSSignatureSizeInBytes:]) cur := mask.CountEnabled() if new > cur { + consensus.getLogger().Info().Hex("old", commitSigBitmap).Hex("new", recvMsg.Payload).Msg("[OnCommitted] Overriding commit signatures!!") consensus.Blockchain.WriteCommitSig(blockObj.NumberU64(), recvMsg.Payload) } - } else { - consensus.Blockchain.WriteCommitSig(blockObj.NumberU64(), recvMsg.Payload) } consensus.tryCatchup()