From cb2f3624da9ceb153b1c03ef9168a96d5c5d09f2 Mon Sep 17 00:00:00 2001 From: William Banfield <4561443+williambanfield@users.noreply.github.com> Date: Mon, 16 May 2022 11:36:01 -0400 Subject: [PATCH] Update internal/consensus/state.go Co-authored-by: M. J. Fromberger --- internal/consensus/state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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