diff --git a/src/wallet.cpp b/src/wallet.cpp index acf2a5c28..b81e36c1a 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1471,18 +1471,17 @@ bool CWallet::SelectCoinsMinConf(int64_t nTargetValue, int nConfMine, int nConfT nValueRet += coinLowestLarger.first; } else { + string s = "CWallet::SelectCoinsMinConf best subset: "; for (unsigned int i = 0; i < vValue.size(); i++) + { if (vfBest[i]) { setCoinsRet.insert(vValue[i].second); nValueRet += vValue[i].first; + s += FormatMoney(vValue[i].first); } - - LogPrint("selectcoins", "SelectCoins() best subset: "); - for (unsigned int i = 0; i < vValue.size(); i++) - if (vfBest[i]) - LogPrint("selectcoins", "%s ", FormatMoney(vValue[i].first)); - LogPrint("selectcoins", "total %s\n", FormatMoney(nBest)); + } + LogPrintf("%s - total %s\n", s, FormatMoney(nBest)); } return true;