cmd/mist: show peer names in peers window

This commit is contained in:
Felix Lange
2015-02-19 16:39:20 +01:00
parent 73f94f3755
commit 1ec6190e86
2 changed files with 4 additions and 2 deletions

View File

@ -466,7 +466,7 @@ NumGC: %d
))
}
type qmlpeer struct{ Addr, NodeID, Caps string }
type qmlpeer struct{ Addr, NodeID, Name, Caps string }
type peersByID []*qmlpeer
@ -481,6 +481,7 @@ func (gui *Gui) setPeerInfo() {
qpeers[i] = &qmlpeer{
NodeID: p.ID().String(),
Addr: p.RemoteAddr().String(),
Name: p.Name(),
Caps: fmt.Sprint(p.Caps()),
}
}