Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/coinselection.cpp
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | if (lowest_larger && | ||||
if (vfBest[i]) { | if (vfBest[i]) { | ||||
util::insert(setCoinsRet, applicable_groups[i].m_outputs); | util::insert(setCoinsRet, applicable_groups[i].m_outputs); | ||||
nValueRet += applicable_groups[i].m_value; | nValueRet += applicable_groups[i].m_value; | ||||
} | } | ||||
} | } | ||||
if (LogAcceptCategory(BCLog::SELECTCOINS)) { | if (LogAcceptCategory(BCLog::SELECTCOINS)) { | ||||
/* Continued */ | /* Continued */ | ||||
LogPrint(BCLog::SELECTCOINS, "SelectCoins() best subset: "); | LogPrintToBeContinued(BCLog::SELECTCOINS, | ||||
"SelectCoins() best subset: "); | |||||
for (size_t i = 0; i < applicable_groups.size(); i++) { | for (size_t i = 0; i < applicable_groups.size(); i++) { | ||||
if (vfBest[i]) { | if (vfBest[i]) { | ||||
/* Continued */ | /* Continued */ | ||||
LogPrint(BCLog::SELECTCOINS, "%s ", | LogPrintToBeContinued( | ||||
BCLog::SELECTCOINS, "%s ", | |||||
FormatMoney(applicable_groups[i].m_value)); | FormatMoney(applicable_groups[i].m_value)); | ||||
} | } | ||||
} | } | ||||
LogPrint(BCLog::SELECTCOINS, "total %s\n", FormatMoney(nBest)); | LogPrint(BCLog::SELECTCOINS, "total %s\n", FormatMoney(nBest)); | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |