Print mempool size in KB when adding txn

(cherry picked from commit e6c7b362ab8915e2aac167fa519bd29836d482af)
This commit is contained in:
Matt Corallo 2015-10-08 00:46:57 -07:00 committed by Jack Grigg
parent 24cfc4337d
commit af34647572
1 changed files with 2 additions and 2 deletions

View File

@ -6675,10 +6675,10 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
RelayTransaction(tx);
vWorkQueue.push_back(inv.hash);
LogPrint("mempool", "AcceptToMemoryPool: peer=%d %s: accepted %s (poolsz %u)\n",
LogPrint("mempool", "AcceptToMemoryPool: peer=%d %s: accepted %s (poolsz %u txn, %u kB)\n",
pfrom->id, pfrom->cleanSubVer,
tx.GetHash().ToString(),
mempool.mapTx.size());
mempool.size(), mempool.DynamicMemoryUsage() / 1000);
// Recursively process any orphan transactions that depended on this one
set<NodeId> setMisbehaving;