Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test behavior if utxo amount is greater than maximum number of sats
Browse files Browse the repository at this point in the history
yancyribbens committed Nov 4, 2024
1 parent 3f6969e commit e018f80
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
@@ -606,6 +606,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 {

0 comments on commit e018f80

Please sign in to comment.