Separate core memory usage computation in core_memusage.h

This commit is contained in:
Pieter Wuille
2015-07-17 13:46:18 -04:00
parent 89289d875d
commit 9e38d0f745
11 changed files with 76 additions and 99 deletions

View File

@@ -31,7 +31,7 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTransaction& _tx, const CAmount& _nFee,
{
nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
nModSize = tx.CalculateModifiedSize(nTxSize);
nUsageSize = tx.DynamicMemoryUsage();
nUsageSize = RecursiveDynamicUsage(tx);
}
CTxMemPoolEntry::CTxMemPoolEntry(const CTxMemPoolEntry& other)