mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge #7183: Improved readability of ApproximateBestSubset
96efcad
Improved readability of sorting for coin selection. (Murch)
This commit is contained in:
parent
78ad32d105
commit
59db2fda16
@ -2576,7 +2576,8 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Solve subset sum by stochastic approximation
|
// Solve subset sum by stochastic approximation
|
||||||
sort(vValue.rbegin(), vValue.rend(), CompareValueOnly());
|
std::sort(vValue.begin(), vValue.end(), CompareValueOnly());
|
||||||
|
std::reverse(vValue.begin(), vValue.end());
|
||||||
vector<char> vfBest;
|
vector<char> vfBest;
|
||||||
CAmount nBest;
|
CAmount nBest;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user