mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 10:42:23 +02:00
Improved readability of sorting for coin selection.
Future proofing added lines
This commit is contained in:
@ -1701,7 +1701,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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user