diff options
| author | Suhas Daftuar <[email protected]> | 2018-01-03 12:00:11 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2018-01-09 08:59:21 -0500 |
| commit | 8e617e3708e0e4d42d586531450a21ae70aecf63 (patch) | |
| tree | be3d92f8474b6ab6897703b94133e687b96a1c1e /src/txmempool.cpp | |
| parent | Merge #12075: [scripts] Add missing univalue file to copyright_header.py (diff) | |
| download | discoin-8e617e3708e0e4d42d586531450a21ae70aecf63.tar.xz discoin-8e617e3708e0e4d42d586531450a21ae70aecf63.zip | |
Remove unused mempool index
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index ffb024aef..d1edde284 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -906,8 +906,8 @@ bool CCoinsViewMemPool::GetCoin(const COutPoint &outpoint, Coin &coin) const { size_t CTxMemPool::DynamicMemoryUsage() const { LOCK(cs); - // Estimate the overhead of mapTx to be 15 pointers + an allocation, as no exact formula for boost::multi_index_contained is implemented. - return memusage::MallocUsage(sizeof(CTxMemPoolEntry) + 15 * sizeof(void*)) * mapTx.size() + memusage::DynamicUsage(mapNextTx) + memusage::DynamicUsage(mapDeltas) + memusage::DynamicUsage(mapLinks) + memusage::DynamicUsage(vTxHashes) + cachedInnerUsage; + // Estimate the overhead of mapTx to be 12 pointers + an allocation, as no exact formula for boost::multi_index_contained is implemented. + return memusage::MallocUsage(sizeof(CTxMemPoolEntry) + 12 * sizeof(void*)) * mapTx.size() + memusage::DynamicUsage(mapNextTx) + memusage::DynamicUsage(mapDeltas) + memusage::DynamicUsage(mapLinks) + memusage::DynamicUsage(vTxHashes) + cachedInnerUsage; } void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason) { |