Skip to content

Commit

Permalink
Move tx enqueue messages to mempool log
Browse files Browse the repository at this point in the history
This limits -debug=validation to messages related to blocks and headers.
  • Loading branch information
Sjors committed Aug 21, 2023
1 parent a79d9b0 commit d336e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void CMainSignals::TransactionAddedToMempool(const CTransactionRef& tx, uint64_t
auto event = [tx, mempool_sequence, this] {
m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.TransactionAddedToMempool(tx, mempool_sequence); });
};
ENQUEUE_AND_LOG_EVENT(BCLog::VALIDATION, BCLog::Level::Info, event, "txid=%s wtxid=%s",
ENQUEUE_AND_LOG_EVENT(BCLog::MEMPOOL, BCLog::Level::Info, event, "txid=%s wtxid=%s",
tx->GetHash().ToString(),
tx->GetWitnessHash().ToString());
}
Expand All @@ -216,7 +216,7 @@ void CMainSignals::TransactionRemovedFromMempool(const CTransactionRef& tx, MemP
auto event = [tx, reason, mempool_sequence, this] {
m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.TransactionRemovedFromMempool(tx, reason, mempool_sequence); });
};
ENQUEUE_AND_LOG_EVENT(BCLog::VALIDATION, BCLog::Level::Info, event, "txid=%s wtxid=%s reason=%s",
ENQUEUE_AND_LOG_EVENT(BCLog::MEMPOOL, BCLog::Level::Info, event, "txid=%s wtxid=%s reason=%s",
tx->GetHash().ToString(),
tx->GetWitnessHash().ToString(),
RemovalReasonToString(reason));
Expand Down

0 comments on commit d336e10

Please sign in to comment.