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)