test for nil problem in e2e

This commit is contained in:
William Banfield
2022-05-15 22:21:53 -04:00
parent 2f96769c2f
commit c92f3d2f33

View File

@@ -2366,6 +2366,8 @@ func (cs *State) addVote(
return
}
_ = vote.ValidatorAddress
_ = cs.privValidatorPubKey.Address()
// Verify VoteExtension if precommit and not nil
// https://github.com/tendermint/tendermint/issues/8487
if vote.Type == tmproto.PrecommitType && !vote.BlockID.IsNil() &&