MCPcopy Create free account
hub / github.com/ElementsProject/elements / _clear

Method _clear

src/txmempool.cpp:778–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778void CTxMemPool::_clear()
779{
780 mapTx.clear();
781 mapNextTx.clear();
782 totalTxSize = 0;
783 m_total_fee = 0;
784 cachedInnerUsage = 0;
785 lastRollingFeeUpdate = GetTime();
786 blockSinceLastRollingFeeBump = false;
787 rollingMinimumFeeRate = 0;
788 ++nTransactionsUpdated;
789}
790
791void CTxMemPool::clear()
792{

Callers

nothing calls this directly

Calls 2

GetTimeFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected