rpcserver: flip inbound bool for display, fix internally later

This commit is contained in:
Conner Fromknecht 2018-01-18 14:10:35 -08:00
parent a8728ccb5b
commit 5126e43135
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF
1 changed files with 1 additions and 1 deletions

View File

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