Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Mar 20, 2024
1 parent 6ee8dfe commit d7251be
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ pub fn select_coins<T: Utxo>(
coins: &[Coin],
) -> Option<impl Iterator<Item = &Coin>> {
{
select_coins_srd(target, coins, &mut thread_rng())
let bnb =
select_coins_bnb(target, cost_of_change, fee_rate, long_term_fee_rate, coins);

if bnb.is_some() {
bnb
} else {
select_coins_srd(target, coins, &mut thread_rng())
}
}
}

Expand Down

0 comments on commit d7251be

Please sign in to comment.