| 998 | } |
| 999 | |
| 1000 | size_t CTxMemPool::DynamicMemoryUsage() const { |
| 1001 | LOCK(cs); |
| 1002 | // Estimate the overhead of mapTx to be 15 pointers + an allocation, as no exact formula for boost::multi_index_contained is implemented. |
| 1003 | return memusage::MallocUsage(sizeof(CTxMemPoolEntry) + 15 * sizeof(void*)) * mapTx.size() + memusage::DynamicUsage(mapNextTx) + memusage::DynamicUsage(mapDeltas) + memusage::DynamicUsage(mapLinks) + memusage::DynamicUsage(vTxHashes) + cachedInnerUsage; |
| 1004 | } |
| 1005 | |
| 1006 | void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason) { |
| 1007 | AssertLockHeld(cs); |
no test coverage detected