Skip to content

Commit

Permalink
Merge pull request #34 from bitcoindevkit/v0.4.0-release
Browse files Browse the repository at this point in the history
V0.4.0 release
  • Loading branch information
LLFourn authored Jan 29, 2025
2 parents 40597a0 + 09c3426 commit dda8638
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Unreleased
# 0.4.0

- Use `u64` for weights instead of u32
- Fix feerate not being rounded up to vbytes #29
- Fix `new_tr_keyspend` weight

# 0.3.0

- Remove `is_target_met_with_change_policy`: it was redundant. If the target is met without a change policy it will always be met with it.
- Remove `min_fee` in favour of `replace` which allows you to replace a transaction
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bdk_coin_select"
version = "0.3.0"
version = "0.4.0"
edition = "2018"
#rust-version = "1.54"
homepage = "https://bitcoindevkit.org"
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,19 @@ match coin_selector.run_bnb(metric, 100_000) {
}
Ok(score) => {
println!("we found a solution with score {}", score);

let selection = coin_selector
.apply_selection(&candidates)
.collect::<Vec<_>>();
let change = coin_selector.drain(target, change_policy);

println!("we selected {} inputs", selection.len());
println!("We are including a change output of {} value (0 means not change)", change.value);
}
};


let selection = coin_selector
.apply_selection(&candidates)
.collect::<Vec<_>>();
let change = coin_selector.drain(target, change_policy);

println!("we selected {} inputs", selection.len());
println!("We are including a change output of {} value (0 means not change)", change.value);


```

# Minimum Supported Rust Version (MSRV)
Expand Down

0 comments on commit dda8638

Please sign in to comment.