1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Cache warming on startup ([`CAC-006`](../../docs/requirements/domains/caching/specs/CAC-006_cache_warming_on_startup.md)).
//!
//! Preloads recent canonical blocks into all in-memory caches during
//! [`crate::store::BlockStore::open`] when `warm_cache_on_open` is `true`.
//!
//! The warming strategy calls [`BlockStore::get_block_by_height`] and
//! [`BlockStore::get_record_by_height`] for each height from tip backward,
//! which auto-populates block_cache, header_cache, record_cache,
//! canonical_height_cache, and hash_to_height_cache through read-through paths.
use crateBlockStore;