Skip to content

Commit 16b1865

Browse files
committed
[BDAP] Remove private data from debug.log file logging
1 parent 7eca6d5 commit 16b1865

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
10411041
if (nBDAPBurn > 0)
10421042
nFees += nBDAPBurn;
10431043

1044-
LogPrintf("%s -- BDAP Burn Amount %d, Total Fees %d, BDAP Deposit Amount %d\n", __func__, FormatMoney(nBDAPBurn), FormatMoney(nFees), FormatMoney(nOpCodeAmount));
1044+
LogPrint("bdap", "%s -- BDAP Burn Amount %d, Total Fees %d, BDAP Deposit Amount %d\n", __func__, FormatMoney(nBDAPBurn), FormatMoney(nFees), FormatMoney(nOpCodeAmount));
10451045
}
10461046
// nModifiedFees includes any fee deltas from PrioritiseTransaction
10471047
CAmount nModifiedFees = nFees;

src/wallet/wallet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex
14101410
if (GetBDAPData(ptx, vchData, vchHash, nOut)) {
14111411
CLinkStorage link(vchData, vchLinkPubKey, vchSharedPubKey, (uint8_t)BDAP::LinkType::RequestType, nHeight, nExpireTime, GetTime(), tx.GetHash());
14121412
if (walletdb.WriteLink(link)) {
1413-
LogPrintf("%s -- WriteLinkRequest nHeight = %llu, txid = %s\n", __func__, nHeight, tx.GetHash().ToString());
1413+
LogPrint("bdap", "%s -- WriteLinkRequest nHeight = %llu, txid = %s\n", __func__, nHeight, tx.GetHash().ToString());
14141414
}
14151415
}
14161416
}
@@ -1420,7 +1420,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlockIndex
14201420
if (GetBDAPData(ptx, vchData, vchHash, nOut)) {
14211421
CLinkStorage link(vchData, vchLinkPubKey, vchSharedPubKey, (uint8_t)BDAP::LinkType::AcceptType, nHeight, nExpireTime, GetTime(), tx.GetHash());
14221422
if (walletdb.WriteLink(link)) {
1423-
LogPrintf("%s -- WriteLinkAccept nHeight = %llu, txid = %s\n", __func__, nHeight, tx.GetHash().ToString());
1423+
LogPrint("bdap", "%s -- WriteLinkAccept nHeight = %llu, txid = %s\n", __func__, nHeight, tx.GetHash().ToString());
14241424
}
14251425
}
14261426
}
@@ -6005,7 +6005,7 @@ bool CWallet::ProcessStealthOutput(const CTxDestination& address, std::vector<ui
60056005
if (idMatchShared != idExtracted) {
60066006
continue;
60076007
}
6008-
LogPrintf("%s -- Found txn output from address %s belongs to stealth address %s\n", __func__, CDynamicAddress(idExtracted).ToString(), sxAddr.Encoded());
6008+
LogPrint("bdap", "%s -- Found txn output from address %s belongs to stealth address %s\n", __func__, CDynamicAddress(idExtracted).ToString(), sxAddr.Encoded());
60096009

60106010
if (IsLocked()) {
60116011
LogPrintf("%s: Wallet locked, adding stealth key to queue wallet.\n", __func__);

0 commit comments

Comments
 (0)