MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetCoinsCacheSizeState

Method GetCoinsCacheSizeState

src/validation.cpp:2680–2686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2678}
2679
2680CoinsCacheSizeState Chainstate::GetCoinsCacheSizeState()
2681{
2682 AssertLockHeld(::cs_main);
2683 return this->GetCoinsCacheSizeState(
2684 m_coinstip_cache_size_bytes,
2685 m_mempool ? m_mempool->m_opts.max_size_bytes : 0);
2686}
2687
2688CoinsCacheSizeState Chainstate::GetCoinsCacheSizeState(
2689 size_t max_coins_cache_size_bytes,

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

LargeCoinsCacheThresholdFunction · 0.85
DynamicMemoryUsageMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64