X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=2455b272488ca34727b73fc80b801bdc2a7f4f34;hb=63e4509c569f16145ab861717baf865fc6d05af1;hp=044f3e2b666aa66704a1676e23a025de4d624c3d;hpb=5528054462b3028bf64e899869f718b50e73fc32;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 044f3e2..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; @@ -2909,7 +2910,7 @@ set< set > CWallet::GetAddressGroupings() CBitcoinAddress txoutAddr; if(!ExtractAddress(*this, txout.scriptPubKey, txoutAddr)) continue; - grouping.insert(txoutAddr); + grouping.insert(txoutAddr); } } if (!grouping.empty())