Skip to content

Commit

Permalink
Move mempool rejections to new debug category
Browse files Browse the repository at this point in the history
Move mempool rejections to debug category `mempoolrej`, to make it
possible to show them without enabling the entire category `mempool`
which is high volume.
  • Loading branch information
random-zebra committed Jun 19, 2020
1 parent e0db16d commit 0e4d964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5784,7 +5784,7 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR

int nDoS = 0;
if (state.IsInvalid(nDoS)) {
LogPrint(BCLog::MEMPOOL, "%s from peer=%d %s was not accepted into the memory pool: %s\n", tx.GetHash().ToString(),
LogPrint(BCLog::MEMPOOLREJ, "%s from peer=%d %s was not accepted into the memory pool: %s\n", tx.GetHash().ToString(),
pfrom->id, pfrom->cleanSubVer,
FormatStateMessage(state));
if (state.GetRejectCode() < REJECT_INTERNAL) // Never send AcceptToMemoryPool's internal codes over P2P
Expand Down

0 comments on commit 0e4d964

Please sign in to comment.