From c67d4507b6a04112dc6257addd6abbbe95132aa1 Mon Sep 17 00:00:00 2001 From: Evgeny Khirin <32414982+evgeny-khirin@users.noreply.github.com> Date: Thu, 2 May 2019 12:06:23 +0300 Subject: [PATCH] [NOD-132] Fixed getaddr command summary (#278) --- peer/log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/peer/log.go b/peer/log.go index 7e4213212..caa850fe9 100644 --- a/peer/log.go +++ b/peer/log.go @@ -133,6 +133,12 @@ func messageSummary(msg wire.Message) string { // No summary. case *wire.MsgGetAddr: + if msg.IncludeAllSubnetworks { + return "all subnetworks and full nodes" + } + if msg.SubnetworkID == nil { + return "full nodes" + } return fmt.Sprintf("subnetwork ID %v", msg.SubnetworkID) case *wire.MsgAddr: