Skip to content

Commit fa25499

Browse files
codablockUdjinM6
authored andcommitted
Swap iterations and fUseInstantSend parameters in ApproximateBestSubset (#1819)
#1695 introduced a fix for a instant send related edge case. Somehow the parameters got mixed up and fUseInstantSend was passed as "iterations".
1 parent d9058aa commit fa25499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
24912491
}
24922492

24932493
static void ApproximateBestSubset(vector<pair<CAmount, pair<const CWalletTx*,unsigned int> > >vValue, const CAmount& nTotalLower, const CAmount& nTargetValue,
2494-
vector<char>& vfBest, CAmount& nBest, int iterations = 1000, bool fUseInstantSend = false)
2494+
vector<char>& vfBest, CAmount& nBest, bool fUseInstantSend = false, int iterations = 1000)
24952495
{
24962496
vector<char> vfIncluded;
24972497

0 commit comments

Comments
 (0)