From bc44ed2aaa100d089db9f30765e282125a307bfe Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Wed, 31 Dec 2025 18:41:30 -0600 Subject: [PATCH] fix: update ReceivedAnnounce method to include hops parameter for improved logging of announce data --- cmd/reticulum-go/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/reticulum-go/main.go b/cmd/reticulum-go/main.go index 6596aa6..5ec6024 100644 --- a/cmd/reticulum-go/main.go +++ b/cmd/reticulum-go/main.go @@ -526,10 +526,10 @@ func (h *AnnounceHandler) AspectFilter() []string { return h.aspectFilter } -func (h *AnnounceHandler) ReceivedAnnounce(destHash []byte, id interface{}, appData []byte) error { - debug.Log(debug.DEBUG_INFO, "Received announce", "hash", fmt.Sprintf("%x", destHash)) +func (h *AnnounceHandler) ReceivedAnnounce(destHash []byte, id interface{}, appData []byte, hops uint8) error { + debug.Log(debug.DEBUG_INFO, "Received announce", "hash", fmt.Sprintf("%x", destHash), "hops", hops) debug.Log(debug.DEBUG_PACKETS, "Raw announce data", "data", fmt.Sprintf("%x", appData)) - debug.Log(debug.DEBUG_INFO, "MAIN HANDLER: Received announce", "hash", fmt.Sprintf("%x", destHash), "appData_len", len(appData)) + debug.Log(debug.DEBUG_INFO, "MAIN HANDLER: Received announce", "hash", fmt.Sprintf("%x", destHash), "appData_len", len(appData), "hops", hops) var isNode bool var nodeEnabled bool