Merge pull request #627 from cfromknecht/invert-inboud-display

rpcserver: flip inbound bool for display, fix internally later
This commit is contained in:
Olaoluwa Osuntokun
2018-02-05 16:22:13 -08:00
committed by GitHub

View File

@@ -1235,7 +1235,7 @@ func (r *rpcServer) ListPeers(ctx context.Context,
PubKey: hex.EncodeToString(nodePub),
PeerId: serverPeer.id,
Address: serverPeer.conn.RemoteAddr().String(),
Inbound: serverPeer.inbound,
Inbound: !serverPeer.inbound, // Flip for display
BytesRecv: atomic.LoadUint64(&serverPeer.bytesReceived),
BytesSent: atomic.LoadUint64(&serverPeer.bytesSent),
SatSent: satSent,