Update internal/consensus/state.go

Co-authored-by: M. J. Fromberger <fromberger@interchain.io>
This commit is contained in:
William Banfield
2022-05-16 11:36:01 -04:00
committed by GitHub
parent d3c9ab64b5
commit cb2f3624da

View File

@@ -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