| 776 | } |
| 777 | |
| 778 | size_t CTxMemPool::DynamicMemoryUsage() const { |
| 779 | LOCK(cs); |
| 780 | // Estimate the overhead of mapTx to be 9 pointers (3 pointers per index) + an allocation, as no exact formula for boost::multi_index_contained is implemented. |
| 781 | return memusage::MallocUsage(sizeof(CTxMemPoolEntry) + 9 * sizeof(void*)) * mapTx.size() + memusage::DynamicUsage(mapNextTx) + memusage::DynamicUsage(mapDeltas) + memusage::DynamicUsage(txns_randomized) + m_txgraph->GetMainMemoryUsage() + cachedInnerUsage; |
| 782 | } |
| 783 | |
| 784 | void CTxMemPool::RemoveUnbroadcastTx(const Txid& txid, const bool unchecked) { |
| 785 | LOCK(cs); |
no test coverage detected