Skip to content

Commit

Permalink
Consolidate fee_amount and amount_needed
Browse files Browse the repository at this point in the history
Before this commit `fee_amount` and `amount_needed` were passed as independent
parameters. From the perspective of coin selection algorithms, they are always
used jointly for the same purpose, to create a coin selection with a total
effective value greater than it's summed values.

This commit removes the abstraction that the use of the two parameter
introduced by consolidating both into a single parameter, `target_amount`, who
carries their values added up.

Resolves: #641
  • Loading branch information
csralvall committed Jul 18, 2022
1 parent 9165fae commit 84317d4
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 119 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Consolidate params `fee_amount` and `amount_needed` in `target_amount` in `CoinSelectionAlgorithm::coin_select` signature.

## [v0.20.0] - [v0.19.0]

Expand Down
Loading

0 comments on commit 84317d4

Please sign in to comment.