aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-13 13:07:01 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2022-12-13 12:57:17 +0100
commitfa818e103c0ddb515f29ae9ce8de44931e12e69e (patch)
tree1bb6d6a165f932011c292b50529080e0687913d6 /src/txmempool.cpp
parent6061eb6564105ad54703a7cf3282590d0e1a7f28 (diff)
downloadbitcoin-fa818e103c0ddb515f29ae9ce8de44931e12e69e.tar.xz
txmempool: Remove unused clear() member function
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 12e2d5f224..b685c79b34 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -389,7 +389,6 @@ CTxMemPool::CTxMemPool(const Options& opts)
m_full_rbf{opts.full_rbf},
m_limits{opts.limits}
{
- _clear(); //lock free clear
}
bool CTxMemPool::isSpent(const COutPoint& outpoint) const
@@ -627,26 +626,6 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
blockSinceLastRollingFeeBump = true;
}
-void CTxMemPool::_clear()
-{
- vTxHashes.clear();
- mapTx.clear();
- mapNextTx.clear();
- totalTxSize = 0;
- m_total_fee = 0;
- cachedInnerUsage = 0;
- lastRollingFeeUpdate = GetTime();
- blockSinceLastRollingFeeBump = false;
- rollingMinimumFeeRate = 0;
- ++nTransactionsUpdated;
-}
-
-void CTxMemPool::clear()
-{
- LOCK(cs);
- _clear();
-}
-
void CTxMemPool::check(const CCoinsViewCache& active_coins_tip, int64_t spendheight) const
{
if (m_check_ratio == 0) return;