Print mempool size in KB when adding txn
(cherry picked from commit e6c7b362ab8915e2aac167fa519bd29836d482af)
This commit is contained in:
parent
24cfc4337d
commit
af34647572
|
@ -6675,10 +6675,10 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
|
||||||
RelayTransaction(tx);
|
RelayTransaction(tx);
|
||||||
vWorkQueue.push_back(inv.hash);
|
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,
|
pfrom->id, pfrom->cleanSubVer,
|
||||||
tx.GetHash().ToString(),
|
tx.GetHash().ToString(),
|
||||||
mempool.mapTx.size());
|
mempool.size(), mempool.DynamicMemoryUsage() / 1000);
|
||||||
|
|
||||||
// Recursively process any orphan transactions that depended on this one
|
// Recursively process any orphan transactions that depended on this one
|
||||||
set<NodeId> setMisbehaving;
|
set<NodeId> setMisbehaving;
|
||||||
|
|
Loading…
Reference in New Issue