fix: update ReceivedAnnounce method to include hops parameter for improved logging of announce data
This commit is contained in:
@@ -526,10 +526,10 @@ func (h *AnnounceHandler) AspectFilter() []string {
|
|||||||
return h.aspectFilter
|
return h.aspectFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *AnnounceHandler) ReceivedAnnounce(destHash []byte, id interface{}, appData []byte) error {
|
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))
|
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_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 isNode bool
|
||||||
var nodeEnabled bool
|
var nodeEnabled bool
|
||||||
|
|||||||
Reference in New Issue
Block a user