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
commit 0d09f7a32a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,