rpc: fix getpeerinfo - relaytxes.

This commit is contained in:
Christopher Jeffrey 2017-02-08 15:56:31 -08:00
parent c12a0630aa
commit 7cc62c0a1e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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