log if extension data present

This commit is contained in:
William Banfield
2022-05-17 10:17:20 -04:00
parent 603381ca2b
commit ae6b910427
+3
View File
@@ -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.
//