diff options
| author | Ryan Havar <[email protected]> | 2017-03-28 18:11:44 +0000 |
|---|---|---|
| committer | Ryan Havar <[email protected]> | 2017-03-28 12:11:44 -0600 |
| commit | 53351321c4c002972b7553520085543c33da5aa1 (patch) | |
| tree | 02c292251320a6bfc6ce38c730c69963719db154 | |
| parent | Merge #10105: [tests] fixup - make all Travis test runs quiet, non just cron ... (diff) | |
| download | discoin-53351321c4c002972b7553520085543c33da5aa1.tar.xz discoin-53351321c4c002972b7553520085543c33da5aa1.zip | |
ApproximateBestSubset should take inputs by reference, not value
| -rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 445e40b04..39e2ab7c1 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2023,7 +2023,7 @@ void CWallet::AvailableCoins(std::vector<COutput>& vCoins, bool fOnlySafe, const } } -static void ApproximateBestSubset(std::vector<std::pair<CAmount, std::pair<const CWalletTx*,unsigned int> > >vValue, const CAmount& nTotalLower, const CAmount& nTargetValue, +static void ApproximateBestSubset(const std::vector<std::pair<CAmount, std::pair<const CWalletTx*,unsigned int> > >& vValue, const CAmount& nTotalLower, const CAmount& nTargetValue, std::vector<char>& vfBest, CAmount& nBest, int iterations = 1000) { std::vector<char> vfIncluded; @@ -2885,7 +2885,7 @@ bool CWallet::SetDefaultKey(const CPubKey &vchPubKey) /** * Mark old keypool keys as used, - * and generate all new keys + * and generate all new keys */ bool CWallet::NewKeyPool() { |