optimize SelectCoins best subset debug output

This commit is contained in:
UdjinM6 2015-02-06 08:38:29 +03:00
parent 3a72da77ac
commit a30b439259

View File

@ -1452,18 +1452,17 @@ bool CWallet::SelectCoinsMinConf(int64_t nTargetValue, int nConfMine, int nConfT
nValueRet += coinLowestLarger.first;
}
else {
string s = "CWallet::SelectCoins 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;