Skip to content

Commit dc3e32d

Browse files
benthecarmancsralvallafilini
committed
Add waste metric for coin selection
Co-authored-by: csralvall <[email protected]> Co-authored-by: afilini <[email protected]>
1 parent 4c1749a commit dc3e32d

File tree

3 files changed

+321
-29
lines changed

3 files changed

+321
-29
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
- added `OldestFirstCoinSelection` impl to `CoinSelectionAlgorithm`
9+
- Added `OldestFirstCoinSelection` impl to `CoinSelectionAlgorithm`
1010
- New MSRV set to `1.56`
1111
- Unpinned tokio to `1`
1212
- Add traits to reuse `Blockchain`s across multiple wallets (`BlockchainFactory` and `StatelessBlockchain`).
1313
- Upgrade to rust-bitcoin `0.28`
14+
- Added `Waste` struct to `coinselection` module, with impl of
15+
`Waste::calculate` to compute waste metric for coin selection algorithms.
16+
- Added `_cost_of_change` parameter for `CoinSelectionAlgorithm::coin_select`
17+
to pass the cost of generating change to calculate the waste metric for each
18+
algorithm.
19+
- Changed `OutputGroup` owned `weighted_utxo` value to borrowed one.
1420

1521

1622
## [v0.18.0] - [v0.17.0]

0 commit comments

Comments
 (0)