| 1560 | } |
| 1561 | |
| 1562 | void 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 |