optimize SelectCoins best subset debug output
This commit is contained in:
parent
3a72da77ac
commit
a30b439259
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user