Browse Source

Improved readability of sorting for coin selection.

Future proofing added lines
0.13
Murch 9 years ago
parent
commit
96efcadfc0
  1. 3
      src/wallet/wallet.cpp

3
src/wallet/wallet.cpp

@ -1701,7 +1701,8 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int @@ -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;

Loading…
Cancel
Save