Merge pull request #236 from bitsblock/master
Remove scriptSig.hex and scriptPubKey.hex delete lines
This commit is contained in:
commit
89192552cd
|
@ -24,7 +24,6 @@ Rpc._parseTxResult = function(info) {
|
||||||
info.vin.forEach(function(i) {
|
info.vin.forEach(function(i) {
|
||||||
i.n = n++;
|
i.n = n++;
|
||||||
if (i.coinbase) info.isCoinBase = true;
|
if (i.coinbase) info.isCoinBase = true;
|
||||||
if (i.scriptSig) delete i.scriptSig.hex;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Outputs => add total
|
// Outputs => add total
|
||||||
|
@ -32,7 +31,6 @@ Rpc._parseTxResult = function(info) {
|
||||||
info.vout.forEach( function(o) {
|
info.vout.forEach( function(o) {
|
||||||
o.value = o.value.toFixed(8);
|
o.value = o.value.toFixed(8);
|
||||||
valueOutSat += o.value * bitcore.util.COIN;
|
valueOutSat += o.value * bitcore.util.COIN;
|
||||||
delete o.scriptPubKey.hex;
|
|
||||||
});
|
});
|
||||||
info.valueOut = valueOutSat.toFixed(0) / bitcore.util.COIN;
|
info.valueOut = valueOutSat.toFixed(0) / bitcore.util.COIN;
|
||||||
info.size = b.length;
|
info.size = b.length;
|
||||||
|
|
Loading…
Reference in New Issue