Add RecursiveDynamicUsage overload for std::shared_ptr

This simplifies a few usage expressions.
This commit is contained in:
Russell Yanofsky
2016-11-21 11:47:12 -05:00
committed by Suhas Daftuar
parent 71f1903353
commit c1235e3f2d
3 changed files with 9 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFe
spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp)
{
nTxWeight = GetTransactionWeight(*tx);
nUsageSize = RecursiveDynamicUsage(*tx) + memusage::DynamicUsage(tx);
nUsageSize = RecursiveDynamicUsage(tx);
nCountWithDescendants = 1;
nSizeWithDescendants = GetTxSize();