mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-19 21:56:22 +00:00
strip vote extensions in the reactor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user