From a593cc4147b305153dba99655773c3f934dfe703 Mon Sep 17 00:00:00 2001 From: Dhruba Basu <7675102+dhrubabasu@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:45:11 -0500 Subject: [PATCH] [snow/networking] Enforce `PreferredIDAtHeight` in `Chits` messages (#2827) --- snow/networking/handler/handler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snow/networking/handler/handler.go b/snow/networking/handler/handler.go index 7a62dd7d928b..8878e4d2f770 100644 --- a/snow/networking/handler/handler.go +++ b/snow/networking/handler/handler.go @@ -716,9 +716,7 @@ func (h *handler) handleSyncMsg(ctx context.Context, msg Message) error { zap.String("field", "PreferredIDAtHeight"), zap.Error(err), ) - // TODO: Require this field to be populated correctly after v1.11.x - // is activated. - preferredIDAtHeight = preferredID + return engine.QueryFailed(ctx, nodeID, msg.RequestId) } acceptedID, err := ids.ToID(msg.AcceptedId)