mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
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".
This commit is contained in:
parent
d9058aa04d
commit
fa25499868
@ -2491,7 +2491,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,
|
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;
|
vector<char> vfIncluded;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user