Skip to content

Commit

Permalink
Test behavior if utxo amount is greater than maximum number of sats
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Dec 19, 2024
1 parent 228e18f commit d9e76f0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/branch_and_bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,19 @@ mod tests {
assert_coin_select_params(&params, None);
}

#[test]
fn select_coins_bnb_utxo_greater_than_max_money() {
let params = ParamsStr {
target: "1 sats",
cost_of_change: "18141417255681066410 sats",
fee_rate: "1",
lt_fee_rate: "0",
weighted_utxos: vec!["8740670712339394302 sats"],
};

assert_coin_select_params(&params, None);
}

#[test]
fn select_coins_bnb_set_size_five() {
let params = ParamsStr {
Expand Down

0 comments on commit d9e76f0

Please sign in to comment.