![]() |
Bitcoin Core
22.0.0
P2P Digital Currency
|
#include <amount.h>#include <policy/feerate.h>#include <primitives/transaction.h>#include <random.h>Go to the source code of this file.
Classes | |
| class | CInputCoin |
| A UTXO under consideration for use in funding a new transaction. More... | |
| struct | CoinSelectionParams |
| Parameters for one iteration of Coin Selection. More... | |
| struct | CoinEligibilityFilter |
| Parameters for filtering which OutputGroups we may use in coin selection. More... | |
| struct | OutputGroup |
| A group of UTXOs paid to the same output script. More... | |
Functions | |
| bool | SelectCoinsBnB (std::vector< OutputGroup > &utxo_pool, const CAmount &selection_target, const CAmount &cost_of_change, std::set< CInputCoin > &out_set, CAmount &value_ret) |
| bool | KnapsackSolver (const CAmount &nTargetValue, std::vector< OutputGroup > &groups, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet) |
Variables | |
| static constexpr CAmount | MIN_CHANGE {COIN / 100} |
| target minimum change amount More... | |
| static const CAmount | MIN_FINAL_CHANGE = MIN_CHANGE/2 |
| final minimum change amount after paying for fees More... | |
| bool KnapsackSolver | ( | const CAmount & | nTargetValue, |
| std::vector< OutputGroup > & | groups, | ||
| std::set< CInputCoin > & | setCoinsRet, | ||
| CAmount & | nValueRet | ||
| ) |
Definition at line 217 of file coinselection.cpp.
| bool SelectCoinsBnB | ( | std::vector< OutputGroup > & | utxo_pool, |
| const CAmount & | selection_target, | ||
| const CAmount & | cost_of_change, | ||
| std::set< CInputCoin > & | out_set, | ||
| CAmount & | value_ret | ||
| ) |
Definition at line 64 of file coinselection.cpp.
target minimum change amount
Definition at line 14 of file coinselection.h.
|
static |
final minimum change amount after paying for fees
Definition at line 16 of file coinselection.h.
1.8.14