From 78c0c9c6ce30a91f3a6bacc80f62403bb51d6e17 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Mon, 16 May 2022 18:25:07 -0400 Subject: [PATCH] strip vote extensions in the reactor --- internal/consensus/state.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index d3a91d5a9..8577c5aad 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2406,6 +2406,15 @@ func (cs *State) addVote( return false, err } } + } else { + // Vote extensions are not enabled on the network. + // strip the extension data from the vote in case any is present. + // + // TODO punish a peer if it sent a vote with an extension when the feature + // is disabled on the network. + // https://github.com/tendermint/tendermint/issues/8565 + vote.Extension = nil + vote.ExtensionSignature = nil } height := cs.Height