Skip to content

Commit c5fa6a0

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

File tree

3 files changed

+329
-29
lines changed

3 files changed

+329
-29
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ 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`
11+
- Added `Waste` struct to `coinselection` module, with impl of
12+
`Waste::calculate` to compute waste metric for coin selection algorithms.
13+
- Added `_cost_of_change` parameter for `CoinSelectionAlgorithm::coin_select`
14+
to pass the cost of generating change to calculate the waste metric for each
15+
algorithm.
16+
- Changed `OutputGroup` owned `weighted_utxo` value to borrowed one.
1117

1218

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

0 commit comments

Comments
 (0)