Go to the source code of this file.
|
bool | SelectCoinsBnB (std::vector< OutputGroup > &utxo_pool, const CAmount &target_value, const CAmount &cost_of_change, std::set< CInputCoin > &out_set, CAmount &value_ret, CAmount not_input_fees) |
|
static void | ApproximateBestSubset (const std::vector< OutputGroup > &groups, const CAmount &nTotalLower, const CAmount &nTargetValue, std::vector< char > &vfBest, CAmount &nBest, int iterations=1000) |
|
bool | KnapsackSolver (const CAmount &nTargetValue, std::vector< OutputGroup > &groups, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet) |
|
◆ ApproximateBestSubset()
static void ApproximateBestSubset |
( |
const std::vector< OutputGroup > & |
groups, |
|
|
const CAmount & |
nTotalLower, |
|
|
const CAmount & |
nTargetValue, |
|
|
std::vector< char > & |
vfBest, |
|
|
CAmount & |
nBest, |
|
|
int |
iterations = 1000 |
|
) |
| |
|
static |
◆ KnapsackSolver()
◆ SelectCoinsBnB()
◆ descending
struct { ... } descending |
◆ TOTAL_TRIES
const size_t TOTAL_TRIES = 100000 |
|
static |