Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/coinselection.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
}; | }; | ||||
bool SelectCoinsBnB(std::vector<CInputCoin> &utxo_pool, | bool SelectCoinsBnB(std::vector<CInputCoin> &utxo_pool, | ||||
const Amount &target_value, const Amount &cost_of_change, | const Amount &target_value, const Amount &cost_of_change, | ||||
std::set<CInputCoin> &out_set, Amount &value_ret, | std::set<CInputCoin> &out_set, Amount &value_ret, | ||||
const Amount not_input_fees); | const Amount not_input_fees); | ||||
// Original coin selection algorithm as a fallback | |||||
bool KnapsackSolver(const Amount nTargetValue, std::vector<CInputCoin> &vCoins, | |||||
std::set<CInputCoin> &setCoinsRet, Amount &nValueRet); | |||||
#endif // BITCOIN_COINSELECTION_H | #endif // BITCOIN_COINSELECTION_H |