From 35d9727bc32b590e56c15db04bf9d51de6cee33e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 16 Mar 2017 13:47:37 -0700 Subject: [PATCH] rpc: minor. --- lib/http/rpc.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 78c321d9..b0668eaa 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -835,8 +835,10 @@ RPC.prototype.getTXOutProof = co(function* getTXOutProof(args, help) { for (i = 0; i < txids.length; i++) { txid = txids[i]; - if (!block.hasTX(txid)) - throw new RPCError(errs.VERIFY_ERROR, 'Block does not contain all txids.'); + if (!block.hasTX(txid)) { + throw new RPCError(errs.VERIFY_ERROR, + 'Block does not contain all txids.'); + } } block = MerkleBlock.fromHashes(block, txids); @@ -2539,7 +2541,8 @@ RPC.prototype.scriptToJSON = function scriptToJSON(script, hex) { hex: undefined, type: Script.typesByVal[type], reqSigs: 1, - addresses: [] + addresses: [], + p2sh: undefined }; if (hex)