Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1492,10 +1492,10 @@ impl Wallet {

if tx.output.is_empty() {
// Uh oh, our transaction has no outputs.
// We allow this when:
// - We have a drain_to address and the utxos we must spend (this happens,
// for example, when we RBF).
// - 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)
// Otherwise, we don't know who we should send the funds to, and how much
// we should send!
if params.drain_to.is_some() && (params.drain_wallet || !params.utxos.is_empty()) {
Expand Down