From a2fd9b35c6c46c68c3b82934ddc556f59a3ddf87 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 4 Mar 2017 16:00:37 -0800 Subject: [PATCH] rpc: fix besthash byte order. --- 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 2fbc8ebd..9fee1d4f 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -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),