We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
create_tx
1 parent fb7681a commit 76a8cc6Copy full SHA for 76a8cc6
1 file changed
src/wallet/mod.rs
@@ -1492,10 +1492,10 @@ impl Wallet {
1492
1493
if tx.output.is_empty() {
1494
// Uh oh, our transaction has no outputs.
1495
- // We allow this when:
1496
- // - We have a drain_to address and the utxos we must spend (this happens,
1497
- // for example, when we RBF).
1498
- // - We have a drain_to address and drain_wallet set.
+ // We allow this when we have a `drain_to` address and either:
+ // - `drain_wallet` is enabled
+ // - there are UTXOs we must spend (this happens, for example, when
+ // sweeping specific UTXOs to a given address)
1499
// Otherwise, we don't know who we should send the funds to, and how much
1500
// we should send!
1501
if params.drain_to.is_some() && (params.drain_wallet || !params.utxos.is_empty()) {
0 commit comments