Skip to main content

Module prefetch_registry

Module prefetch_registry 

Source
Expand description

Generalized storage prefetch registry for EVM cache pre-warming.

Captures access lists from EVM interactions (multicall batches, simulations) and persists them across cycles. On the next cycle, batch-fetches the recorded slots into BlockchainDb before the EVM touches them, converting N individual eth_getStorageAt RPC calls into a small number of batched HTTP requests (the batch size is governed by the cache’s speed mode).

Supports two storage shapes:

  • Aggregated phases (e.g., a pool_refresh phase): one access list per phase.
  • Keyed phases: per-address access lists, enabling selective prefetch for only the addresses that will be simulated.

Structs§

PrefetchRegistry
Registry of access lists keyed by phase, persisted across cycles.