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

Method InitCoinsCache

src/validation.cpp:1562–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562void CChainState::InitCoinsCache(size_t cache_size_bytes)
1563{
1564 AssertLockHeld(::cs_main);
1565 assert(m_coins_views != nullptr);
1566 m_coinstip_cache_size_bytes = cache_size_bytes;
1567 m_coins_views->InitCache();
1568}
1569
1570// Note that though this is marked const, we may end up modifying `m_cached_finished_ibd`, which
1571// is a performance-related implementation detail. This function must be marked

Callers 5

ActivateSnapshotMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
LoadChainstateFunction · 0.80

Calls 1

InitCacheMethod · 0.80

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64