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

Method InitCoinsCache

src/validation.cpp:1937–1943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1935}
1936
1937void Chainstate::InitCoinsCache(size_t cache_size_bytes)
1938{
1939 AssertLockHeld(::cs_main);
1940 assert(m_coins_views != nullptr);
1941 m_coinstip_cache_size_bytes = cache_size_bytes;
1942 m_coins_views->InitCache();
1943}
1944
1945// Lock-free: depends on `m_cached_is_ibd`, which is latched by `UpdateIBDStatus()`.
1946bool ChainstateManager::IsInitialBlockDownload() const noexcept

Callers 5

ActivateSnapshotMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80

Calls 1

InitCacheMethod · 0.80

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64