show if peer is static

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-06-26 23:09:09 -04:00 committed by Jakub
parent a9f41a482c
commit d8b743f211
1 changed files with 2 additions and 1 deletions

View File

@ -71,10 +71,11 @@ func writePeerDetails(g *gocui.Gui, peer *Peer) {
return err
}
v.Clear()
fmt.Fprintf(v, strings.Repeat("%-8s: %s\n", 6),
fmt.Fprintf(v, strings.Repeat("%-8s: %v\n", 7),
"Name", peer.Name,
"ID", string(peer.Id),
"Enode", peer.Enode,
"Static", peer.Network.Static,
"Local", peer.Network.LocalAddress,
"Remote", peer.Network.RemoteAddress,
"Caps", strings.Join(peer.Caps, ", "))