Skip to content

Commit 86569fd

Browse files
coreyphillipsben-kaufman
authored andcommitted
fix: update error
select_utxos_with_algorithm now correctly returns NoSpendableOutputs if safe_utxos is empty.
1 parent 20992fe commit 86569fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ impl Wallet {
10111011
self.logger,
10121012
"No spendable UTXOs available after filtering funding transactions"
10131013
);
1014-
return Err(Error::InsufficientFunds);
1014+
return Err(Error::NoSpendableOutputs);
10151015
}
10161016

10171017
// Use the improved weight calculation from the second implementation

0 commit comments

Comments
 (0)