cmd/mist: show peer names in peers window
This commit is contained in:
parent
73f94f3755
commit
1ec6190e86
@ -927,7 +927,8 @@ ApplicationWindow {
|
|||||||
model: peerModel
|
model: peerModel
|
||||||
TableViewColumn{width: 180; role: "addr" ; title: "Remote Address" }
|
TableViewColumn{width: 180; role: "addr" ; title: "Remote Address" }
|
||||||
TableViewColumn{width: 280; role: "nodeID" ; title: "Node ID" }
|
TableViewColumn{width: 280; role: "nodeID" ; title: "Node ID" }
|
||||||
TableViewColumn{width: 180; role: "caps" ; title: "Capabilities" }
|
TableViewColumn{width: 100; role: "name" ; title: "Name" }
|
||||||
|
TableViewColumn{width: 40; role: "caps" ; title: "Capabilities" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -466,7 +466,7 @@ NumGC: %d
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
type qmlpeer struct{ Addr, NodeID, Caps string }
|
type qmlpeer struct{ Addr, NodeID, Name, Caps string }
|
||||||
|
|
||||||
type peersByID []*qmlpeer
|
type peersByID []*qmlpeer
|
||||||
|
|
||||||
@ -481,6 +481,7 @@ func (gui *Gui) setPeerInfo() {
|
|||||||
qpeers[i] = &qmlpeer{
|
qpeers[i] = &qmlpeer{
|
||||||
NodeID: p.ID().String(),
|
NodeID: p.ID().String(),
|
||||||
Addr: p.RemoteAddr().String(),
|
Addr: p.RemoteAddr().String(),
|
||||||
|
Name: p.Name(),
|
||||||
Caps: fmt.Sprint(p.Caps()),
|
Caps: fmt.Sprint(p.Caps()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user