Transaction: remove hash:index notation

This commit is contained in:
Daniel Cousens 2014-05-19 09:31:16 +10:00
parent 1f2becbb45
commit a6b9dd9473
3 changed files with 14 additions and 40 deletions

View file

@ -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