]> Untitled Git - bdk/commit
Consolidate `fee_amount` and `amount_needed`
authorCesar Alvarez Vallero <46329881+csralvall@users.noreply.github.com>
Sun, 10 Jul 2022 22:57:44 +0000 (19:57 -0300)
committerDaniela Brozzoni <danielabrozzoni@protonmail.com>
Wed, 3 Aug 2022 10:19:01 +0000 (12:19 +0200)
commite8df3d2d91927edb9a339c664f0603c47622e4b0
tree38c57bfeba11e566e4724deb3a959708f74688d1
parent1730e0150f493ff08a39c581a0af1a403eff07cb
Consolidate `fee_amount` and `amount_needed`

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.
CHANGELOG.md
src/wallet/coin_selection.rs
src/wallet/mod.rs