![]() |
Bitcoin ABC
0.22.12
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | CInputCoin |
struct | CoinEligibilityFilter |
struct | OutputGroup |
Functions | |
bool | SelectCoinsBnB (std::vector< OutputGroup > &utxo_pool, const Amount &target_value, const Amount &cost_of_change, std::set< CInputCoin > &out_set, Amount &value_ret, const Amount not_input_fees) |
bool | KnapsackSolver (const Amount nTargetValue, std::vector< OutputGroup > &groups, std::set< CInputCoin > &setCoinsRet, Amount &nValueRet) |
Variables | |
static constexpr Amount | MIN_CHANGE {COIN / 100} |
target minimum change amount More... | |
static const Amount | MIN_FINAL_CHANGE = MIN_CHANGE / 2 |
final minimum change amount after paying for fees More... | |
bool KnapsackSolver | ( | const Amount | nTargetValue, |
std::vector< OutputGroup > & | groups, | ||
std::set< CInputCoin > & | setCoinsRet, | ||
Amount & | nValueRet | ||
) |
Definition at line 252 of file coinselection.cpp.
bool SelectCoinsBnB | ( | std::vector< OutputGroup > & | utxo_pool, |
const Amount & | target_value, | ||
const Amount & | cost_of_change, | ||
std::set< CInputCoin > & | out_set, | ||
Amount & | value_ret, | ||
const Amount | not_input_fees | ||
) |
Definition at line 69 of file coinselection.cpp.
target minimum change amount
Definition at line 13 of file coinselection.h.
|
static |
final minimum change amount after paying for fees
Definition at line 15 of file coinselection.h.