Transaction: remove hash:index notation
This commit is contained in:
parent
1f2becbb45
commit
a6b9dd9473
3 changed files with 14 additions and 40 deletions
src
|
@ -190,11 +190,12 @@ function Wallet(seed, network) {
|
|||
for (var i = 0; i < utxos.length; ++i) {
|
||||
var utxo = utxos[i]
|
||||
|
||||
tx.addInput(utxo.receive)
|
||||
accum += utxo.value
|
||||
var outpoint = utxo.receive.split(':')
|
||||
tx.addInput(outpoint[0], parseInt(outpoint[1]))
|
||||
|
||||
var fee = fixedFee == undefined ? estimateFeePadChangeOutput(tx) : fixedFee
|
||||
|
||||
accum += utxo.value
|
||||
subTotal = value + fee
|
||||
if (accum >= subTotal) {
|
||||
var change = accum - subTotal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue