Remove scriptSig.hex and scriptPubKey.hex delete lines as this
information would be useful for the tx API response
This commit is contained in:
parent
1b647758f1
commit
63db916f5d
@ -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
Block a user