Net_info should print the ID of peers (#1312)

This commit is contained in:
Zaki Manian
2018-04-05 02:02:23 -07:00
committed by Anton Kaliaev
parent 140f962201
commit f907113c19
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func NetInfo() (*ctypes.ResultNetInfo, error) {
for _, peer := range p2pSwitch.Peers().List() {
peers = append(peers, ctypes.Peer{
NodeInfo: peer.NodeInfo(),
ID: peer.ID(),
IsOutbound: peer.IsOutbound(),
ConnectionStatus: peer.Status(),
})