Skip to content

Commit dda8638

Browse files
authored
Merge pull request #34 from bitcoindevkit/v0.4.0-release
V0.4.0 release
2 parents 40597a0 + 09c3426 commit dda8638

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Unreleased
1+
# 0.4.0
2+
3+
- Use `u64` for weights instead of u32
4+
- Fix feerate not being rounded up to vbytes #29
5+
- Fix `new_tr_keyspend` weight
6+
7+
# 0.3.0
28

39
- 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.
410
- Remove `min_fee` in favour of `replace` which allows you to replace a transaction

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bdk_coin_select"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2018"
55
#rust-version = "1.54"
66
homepage = "https://bitcoindevkit.org"

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,19 @@ match coin_selector.run_bnb(metric, 100_000) {
162162
}
163163
Ok(score) => {
164164
println!("we found a solution with score {}", score);
165-
166-
let selection = coin_selector
167-
.apply_selection(&candidates)
168-
.collect::<Vec<_>>();
169-
let change = coin_selector.drain(target, change_policy);
170-
171-
println!("we selected {} inputs", selection.len());
172-
println!("We are including a change output of {} value (0 means not change)", change.value);
173165
}
174166
};
175167

168+
169+
let selection = coin_selector
170+
.apply_selection(&candidates)
171+
.collect::<Vec<_>>();
172+
let change = coin_selector.drain(target, change_policy);
173+
174+
println!("we selected {} inputs", selection.len());
175+
println!("We are including a change output of {} value (0 means not change)", change.value);
176+
177+
176178
```
177179

178180
# Minimum Supported Rust Version (MSRV)

0 commit comments

Comments
 (0)