diff --git a/internal/consensus/state.go b/internal/consensus/state.go index a3ff5acc7..d31fc12fe 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -2403,6 +2403,9 @@ func (cs *State) addVote( } } } else { + if vote.Extension != nil || vote.ExtensionSignature != nil { + cs.logger.Error("vote included extension data but vote extensions are not enabled", "peer", peerID) + } // Vote extensions are not enabled on the network. // strip the extension data from the vote in case any is present. //