.
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];
|
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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue