strip vote extensions in the reactor

This commit is contained in:
William Banfield
2022-05-16 18:25:07 -04:00
parent b51b83a250
commit 78c0c9c6ce
+9
View File
@@ -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