diff --git a/internal/consensus/state.go b/internal/consensus/state.go index cc1bac1da..a721dbd92 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2376,9 +2376,9 @@ func (cs *State) addVote( return } - var addr []byte + var myAddr []byte if cs.privValidatorPubKey != nil { - addr = cs.privValidatorPubKey.Address() + myAddr = cs.privValidatorPubKey.Address() } // Verify VoteExtension if precommit and not nil // https://github.com/tendermint/tendermint/issues/8487