|
|
@ -15,8 +15,9 @@ func NetInfo() (*ctypes.ResultNetInfo, error) { |
|
|
|
peers := []ctypes.Peer{} |
|
|
|
for _, peer := range p2pSwitch.Peers().List() { |
|
|
|
peers = append(peers, ctypes.Peer{ |
|
|
|
NodeInfo: *peer.NodeInfo, |
|
|
|
IsOutbound: peer.IsOutbound(), |
|
|
|
NodeInfo: *peer.NodeInfo, |
|
|
|
IsOutbound: peer.IsOutbound(), |
|
|
|
ConnectionStatus: peer.Connection().Status(), |
|
|
|
}) |
|
|
|
} |
|
|
|
return &ctypes.ResultNetInfo{ |
|
|
|