Skip to content

Commit 5335132

Browse files
committed
ApproximateBestSubset should take inputs by reference, not value
1 parent 0b9fb68 commit 5335132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ void CWallet::AvailableCoins(std::vector<COutput>& vCoins, bool fOnlySafe, const
20232023
}
20242024
}
20252025

2026-
static void ApproximateBestSubset(std::vector<std::pair<CAmount, std::pair<const CWalletTx*,unsigned int> > >vValue, const CAmount& nTotalLower, const CAmount& nTargetValue,
2026+
static void ApproximateBestSubset(const std::vector<std::pair<CAmount, std::pair<const CWalletTx*,unsigned int> > >& vValue, const CAmount& nTotalLower, const CAmount& nTargetValue,
20272027
std::vector<char>& vfBest, CAmount& nBest, int iterations = 1000)
20282028
{
20292029
std::vector<char> vfIncluded;
@@ -2885,7 +2885,7 @@ bool CWallet::SetDefaultKey(const CPubKey &vchPubKey)
28852885

28862886
/**
28872887
* Mark old keypool keys as used,
2888-
* and generate all new keys
2888+
* and generate all new keys
28892889
*/
28902890
bool CWallet::NewKeyPool()
28912891
{

0 commit comments

Comments
 (0)