This commit is contained in:
Matias Alejo Garcia 2014-11-01 16:37:15 -03:00
commit c6c6b459b6

View file

@ -2365,19 +2365,14 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, comment, utxos
opts[k] = Wallet.builderOpts[k]; opts[k] = Wallet.builderOpts[k];
} }
var b; var b = new Builder(opts);
// try { b.setUnspent(utxos);
b = new Builder(opts)
.setUnspent(utxos) b.setOutputs([{
.setOutputs([{ address: toAddress.data,
address: toAddress.data, amountSatStr: amountSatStr,
amountSatStr: amountSatStr, }]);
}]);
// } catch (e) {
// log.debug(e.message);
// return;
// };
var selectedUtxos = b.getSelectedUnspent(); var selectedUtxos = b.getSelectedUnspent();
var inputChainPaths = selectedUtxos.map(function(utxo) { var inputChainPaths = selectedUtxos.map(function(utxo) {