From 19cc03f6fd90081fae8dd44debe0e12b516b34d8 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 16 May 2022 11:38:23 -0400 Subject: [PATCH] addr -> myAddr --- internal/consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index a721dbd92..99fbae497 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2383,7 +2383,7 @@ func (cs *State) addVote( // Verify VoteExtension if precommit and not nil // https://github.com/tendermint/tendermint/issues/8487 if vote.Type == tmproto.PrecommitType && !vote.BlockID.IsNil() && - !bytes.Equal(vote.ValidatorAddress, addr) { + !bytes.Equal(vote.ValidatorAddress, myAddr) { // The core fields of the vote message were already validated in the // consensus reactor when the vote was received. // Here, we valdiate that the vote extension was included in the vote