Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 713 Lines • ▼ Show 20 Lines | void CTxMemPool::check(const CCoinsViewCache *pcoins) const { | ||||
if (m_check_ratio == 0) { | if (m_check_ratio == 0) { | ||||
return; | return; | ||||
} | } | ||||
if (GetRand(m_check_ratio) >= 1) { | if (GetRand(m_check_ratio) >= 1) { | ||||
return; | return; | ||||
} | } | ||||
AssertLockHeld(::cs_main); | |||||
LOCK(cs); | LOCK(cs); | ||||
LogPrint(BCLog::MEMPOOL, | LogPrint(BCLog::MEMPOOL, | ||||
"Checking mempool with %u transactions and %u inputs\n", | "Checking mempool with %u transactions and %u inputs\n", | ||||
(unsigned int)mapTx.size(), (unsigned int)mapNextTx.size()); | (unsigned int)mapTx.size(), (unsigned int)mapNextTx.size()); | ||||
uint64_t checkTotal = 0; | uint64_t checkTotal = 0; | ||||
uint64_t innerUsage = 0; | uint64_t innerUsage = 0; | ||||
▲ Show 20 Lines • Show All 727 Lines • Show Last 20 Lines |