.
This commit is contained in:
parent
2564cb22d7
commit
c6c6b459b6
1 changed files with 7 additions and 12 deletions
|
|
@ -2365,19 +2365,14 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, comment, utxos
|
|||
opts[k] = Wallet.builderOpts[k];
|
||||
}
|
||||
|
||||
var b;
|
||||
var b = new Builder(opts);
|
||||
|
||||
// try {
|
||||
b = new Builder(opts)
|
||||
.setUnspent(utxos)
|
||||
.setOutputs([{
|
||||
address: toAddress.data,
|
||||
amountSatStr: amountSatStr,
|
||||
}]);
|
||||
// } catch (e) {
|
||||
// log.debug(e.message);
|
||||
// return;
|
||||
// };
|
||||
b.setUnspent(utxos);
|
||||
|
||||
b.setOutputs([{
|
||||
address: toAddress.data,
|
||||
amountSatStr: amountSatStr,
|
||||
}]);
|
||||
|
||||
var selectedUtxos = b.getSelectedUnspent();
|
||||
var inputChainPaths = selectedUtxos.map(function(utxo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue