diff --git a/src/wallet/coin_selection.rs b/src/wallet/coin_selection.rs index 978f3d16..1dcc2c9e 100644 --- a/src/wallet/coin_selection.rs +++ b/src/wallet/coin_selection.rs @@ -345,6 +345,14 @@ impl CoinSelectionAlgorithm for BranchAndBoundCoinSelection { .try_into() .expect("Bitcoin amount to fit into i64"); + if curr_value > actual_target { + return Ok(BranchAndBoundCoinSelection::calculate_cs_result( + vec![], + required_utxos, + fee_amount, + )); + } + Ok(self .bnb( required_utxos.clone(),