rpc: fix besthash byte order.

This commit is contained in:
Christopher Jeffrey 2017-03-04 16:00:37 -08:00
parent 1a5263ef23
commit a2fd9b35c6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -538,7 +538,7 @@ RPC.prototype.getpeerinfo = co(function* getpeerinfo(args, help) {
subver: peer.agent,
inbound: !peer.outbound,
startingheight: peer.height,
besthash: peer.bestHash,
besthash: peer.bestHash ? util.revHex(peer.bestHash) : null,
bestheight: peer.bestHeight,
banscore: peer.banScore,
inflight: peer.requestMap.keys().map(util.revHex),