diff options
| author | Karl-Johan Alm <[email protected]> | 2018-07-19 11:45:26 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2018-07-24 15:05:37 +0900 |
| commit | 59d6f7b4e2f847ec1f2ff46c84e6157655984f85 (patch) | |
| tree | 259887780c4798f97fbf006d41849224f611706d /src/wallet/coinselection.h | |
| parent | wallet: Add output grouping (diff) | |
| download | discoin-59d6f7b4e2f847ec1f2ff46c84e6157655984f85.tar.xz discoin-59d6f7b4e2f847ec1f2ff46c84e6157655984f85.zip | |
wallet: Switch to using output groups instead of coins in coin selection
Diffstat (limited to 'src/wallet/coinselection.h')
| -rw-r--r-- | src/wallet/coinselection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index 021185175..01fd6d17c 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -95,9 +95,9 @@ struct OutputGroup bool EligibleForSpending(const CoinEligibilityFilter& eligibility_filter) const; }; -bool SelectCoinsBnB(std::vector<CInputCoin>& utxo_pool, const CAmount& target_value, const CAmount& cost_of_change, std::set<CInputCoin>& out_set, CAmount& value_ret, CAmount not_input_fees); +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); // Original coin selection algorithm as a fallback -bool KnapsackSolver(const CAmount& nTargetValue, std::vector<CInputCoin>& vCoins, std::set<CInputCoin>& setCoinsRet, CAmount& nValueRet); +bool KnapsackSolver(const CAmount& nTargetValue, std::vector<OutputGroup>& groups, std::set<CInputCoin>& setCoinsRet, CAmount& nValueRet); #endif // BITCOIN_WALLET_COINSELECTION_H |