From ae6b91042705cf1f7015cfad498958fdccace5a4 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 17 May 2022 10:17:20 -0400 Subject: [PATCH] log if extension data present --- internal/consensus/state.go | 3 +++ 1 file changed, 3 insertions(+) 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. //