From fa25499868cb1d8828ce286836cc2e1a74da584a Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 28 Dec 2017 01:49:05 +0100 Subject: [PATCH] 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". --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d47b2f177..078c0323b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2491,7 +2491,7 @@ void CWallet::AvailableCoins(vector& vCoins, bool fOnlyConfirmed, const } static void ApproximateBestSubset(vector > >vValue, const CAmount& nTotalLower, const CAmount& nTargetValue, - vector& vfBest, CAmount& nBest, int iterations = 1000, bool fUseInstantSend = false) + vector& vfBest, CAmount& nBest, bool fUseInstantSend = false, int iterations = 1000) { vector vfIncluded;