mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-29 07:27:05 +01:00
Revert "rpcserver: flip inbound bool for display, fix internally later"
This reverts commit 5126e43135 since the
underlying issue has now been fixed.
This commit is contained in:
@@ -1292,7 +1292,7 @@ func (r *rpcServer) ListPeers(ctx context.Context,
|
|||||||
peer := &lnrpc.Peer{
|
peer := &lnrpc.Peer{
|
||||||
PubKey: hex.EncodeToString(nodePub),
|
PubKey: hex.EncodeToString(nodePub),
|
||||||
Address: serverPeer.conn.RemoteAddr().String(),
|
Address: serverPeer.conn.RemoteAddr().String(),
|
||||||
Inbound: !serverPeer.inbound, // Flip for display
|
Inbound: serverPeer.inbound,
|
||||||
BytesRecv: atomic.LoadUint64(&serverPeer.bytesReceived),
|
BytesRecv: atomic.LoadUint64(&serverPeer.bytesReceived),
|
||||||
BytesSent: atomic.LoadUint64(&serverPeer.bytesSent),
|
BytesSent: atomic.LoadUint64(&serverPeer.bytesSent),
|
||||||
SatSent: satSent,
|
SatSent: satSent,
|
||||||
|
|||||||
Reference in New Issue
Block a user