fix: follow-up fixes

This commit is contained in:
UdjinM6 2024-11-29 12:50:45 +03:00
parent a254a7b70c
commit dfe86b4fb2
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9
2 changed files with 3 additions and 3 deletions

View File

@ -770,7 +770,7 @@ void CoinControlDialog::updateView()
// CoinJoin rounds // CoinJoin rounds
int nRounds = model->getRealOutpointCoinJoinRounds(output); int nRounds = model->getRealOutpointCoinJoinRounds(output);
if (nRounds >= 0 || LogAcceptCategory(BCLog::COINJOIN)) { if (nRounds >= 0 || LogAcceptDebug(BCLog::COINJOIN)) {
itemOutput->setText(COLUMN_COINJOIN_ROUNDS, QString::number(nRounds)); itemOutput->setText(COLUMN_COINJOIN_ROUNDS, QString::number(nRounds));
} else { } else {
itemOutput->setText(COLUMN_COINJOIN_ROUNDS, tr("n/a")); itemOutput->setText(COLUMN_COINJOIN_ROUNDS, tr("n/a"));

View File

@ -3432,11 +3432,11 @@ std::vector<CompactTallyItem> CWallet::SelectCoinsGroupedByAddresses(bool fSkipD
} }
// debug // debug
if (LogAcceptCategory(BCLog::SELECTCOINS, BCLog::Level::Debug)) { if (LogAcceptDebug(BCLog::SELECTCOINS)) {
std::string strMessage = "SelectCoinsGroupedByAddresses - vecTallyRet:\n"; std::string strMessage = "SelectCoinsGroupedByAddresses - vecTallyRet:\n";
for (const auto& item : vecTallyRet) for (const auto& item : vecTallyRet)
strMessage += strprintf(" %s %f\n", EncodeDestination(item.txdest), float(item.nAmount)/COIN); strMessage += strprintf(" %s %f\n", EncodeDestination(item.txdest), float(item.nAmount)/COIN);
LogPrintf("%s", strMessage); /* Continued */ LogPrint(BCLog::SELECTCOINS, "%s", strMessage); /* Continued */
} }
return vecTallyRet; return vecTallyRet;