From 447bdfc1e2173b570fe6abcfc701da84d4c3070b Mon Sep 17 00:00:00 2001 From: aljo242 Date: Fri, 17 Nov 2023 12:39:31 -0500 Subject: [PATCH] add or --- consensus/state.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/consensus/state.go b/consensus/state.go index 8d3394086d..b7226c0079 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -2177,8 +2177,7 @@ func (cs *State) addVote(vote *types.Vote, peerID p2p.ID) (added bool, err error if vote.Type == cmtproto.PrecommitType && !vote.BlockID.IsZero() && !bytes.Equal(vote.ValidatorAddress, myAddr) && bytes.Equal(cs.state.NextValidators.Proposer.Address, myAddr) && - len(vote.ExtensionSignature) > 0 && - len(vote.Extension) > 0 { + (len(vote.ExtensionSignature) > 0 || len(vote.Extension) > 0) { // Skip the VerifyVoteExtension call if the vote was issued by this validator. // Skip the VerifyVoteExtension if this validator is not the next proposer