X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=2455b272488ca34727b73fc80b801bdc2a7f4f34;hp=91407109a037b2d545d3552bce7c8b7b5f18e6a2;hb=95df147bd16a1b3052f1a62f18a3ef880b0ad0ab;hpb=c36e0f10905a4de6613ea223ccfd6e17fbdc737b 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;