mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-132] Fixed getaddr command summary (#278)
This commit is contained in:
parent
ea5e18ea11
commit
c67d4507b6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user