Skip to content

Commit

Permalink
add or
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 17, 2023
1 parent b33409e commit 447bdfc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 447bdfc

Please sign in to comment.