| 1935 | } |
| 1936 | |
| 1937 | void 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()`. |
| 1946 | bool ChainstateManager::IsInitialBlockDownload() const noexcept |