[NOD-132] Fixed getaddr command summary (#278)

This commit is contained in:
Evgeny Khirin 2019-05-02 12:06:23 +03:00 committed by Ori Newman
parent ea5e18ea11
commit c67d4507b6

View File

@ -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: