From e6c7b362ab8915e2aac167fa519bd29836d482af Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 8 Oct 2015 00:46:57 -0700 Subject: [PATCH] Print mempool size in KB when adding txn --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 613eeff22..f01bb8ec9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4287,10 +4287,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, RelayTransaction(tx); vWorkQueue.push_back(inv.hash); - LogPrint("mempool", "AcceptToMemoryPool: peer=%d: accepted %s (poolsz %u)\n", + LogPrint("mempool", "AcceptToMemoryPool: peer=%d: accepted %s (poolsz %u txn, %u kB)\n", pfrom->id, tx.GetHash().ToString(), - mempool.size()); + mempool.size(), mempool.DynamicMemoryUsage() / 1000); // Recursively process any orphan transactions that depended on this one set setMisbehaving;