X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=2455b272488ca34727b73fc80b801bdc2a7f4f34;hb=510a23a2c838245cd4681ed0b4fbce48e8ebf506;hp=91407109a037b2d545d3552bce7c8b7b5f18e6a2;hpb=4ca0237ec0d2825004fa3aa2b00a94da2a083b8b;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 9140710..2455b27 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1888,7 +1888,8 @@ bool CWallet::SelectCoinsMinConf(int64_t nTargetValue, unsigned int nSpendTime, } // 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 vfBest; int64_t nBest;