fix valOut
This commit is contained in:
parent
f537db469e
commit
7b7d0868f0
|
@ -31,10 +31,10 @@ Rpc._parseTxResult = function(info) {
|
|||
var valueOutSat = 0;
|
||||
info.vout.forEach( function(o) {
|
||||
o.value = o.value.toFixed(8);
|
||||
valueOutSat += (o.value * bitcore.util.COIN).toFixed(0);
|
||||
valueOutSat += o.value * bitcore.util.COIN;
|
||||
delete o.scriptPubKey.hex;
|
||||
});
|
||||
info.valueOut = valueOutSat / bitcore.util.COIN;
|
||||
info.valueOut = valueOutSat.toFixed(0) / bitcore.util.COIN;
|
||||
info.size = b.length;
|
||||
|
||||
return info;
|
||||
|
|
Loading…
Reference in New Issue