Improved readability of sorting for coin selection.

Future proofing added lines
This commit is contained in:
Murch committed 2016-01-05 22:03:43 +01:00
1 parent dc0305d15a
commit 96efcadfc0
1 file changed
+2 -1
+2 -1
View File
@@ -1701,7 +1701,8 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int
}
// 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;
CAmount nBest;