Skip to content

Commit

Permalink
Swap iterations and fUseInstantSend parameters in ApproximateBestSubs…
Browse files Browse the repository at this point in the history
…et (dashpay#1819)

dashpay#1695 introduced a fix for a instant send related edge case. Somehow the
parameters got mixed up and fUseInstantSend was passed as "iterations".
  • Loading branch information
codablock authored and UdjinM6 committed Jan 5, 2018
1 parent ada41c3 commit d6e2aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
}

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

Expand Down

0 comments on commit d6e2aa8

Please sign in to comment.