From 63db916f5dbd172dc2fda2ea986e6a527e456c93 Mon Sep 17 00:00:00 2001 From: igarciaes Date: Fri, 7 Nov 2014 18:56:20 +0100 Subject: [PATCH] Remove scriptSig.hex and scriptPubKey.hex delete lines as this information would be useful for the tx API response --- lib/Rpc.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Rpc.js b/lib/Rpc.js index bcf8d329..f81f3721 100644 --- a/lib/Rpc.js +++ b/lib/Rpc.js @@ -24,7 +24,6 @@ Rpc._parseTxResult = function(info) { info.vin.forEach(function(i) { i.n = n++; if (i.coinbase) info.isCoinBase = true; - if (i.scriptSig) delete i.scriptSig.hex; }); // Outputs => add total @@ -32,7 +31,6 @@ Rpc._parseTxResult = function(info) { info.vout.forEach( function(o) { o.value = o.value.toFixed(8); valueOutSat += o.value * bitcore.util.COIN; - delete o.scriptPubKey.hex; }); info.valueOut = valueOutSat.toFixed(0) / bitcore.util.COIN; info.size = b.length;