Skip to content

Commit d326a99

Browse files
committed
fix: update error
select_utxos_with_algorithm now correctly returns NoSpendableOutputs if safe_utxos is empty.
1 parent 413963d commit d326a99

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
@@ -964,7 +964,7 @@ where
964964
self.logger,
965965
"No spendable UTXOs available after filtering funding transactions"
966966
);
967-
return Err(Error::InsufficientFunds);
967+
return Err(Error::NoSpendableOutputs);
968968
}
969969

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

0 commit comments

Comments
 (0)