From 7cc62c0a1e2460d58990756f614f24a03f221039 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 8 Feb 2017 15:56:31 -0800 Subject: [PATCH] rpc: fix getpeerinfo - relaytxes. --- lib/http/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 6fe68e8c..744a0a33 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -523,7 +523,7 @@ RPC.prototype.getpeerinfo = co(function* getpeerinfo(args) { id: id++, addr: peer.hostname(), addrlocal: peer.hostname(), - relaytxes: peer.outbound, + relaytxes: !peer.noRelay, lastsend: peer.lastSend / 1000 | 0, lastrecv: peer.lastRecv / 1000 | 0, bytessent: peer.socket.bytesWritten,