Expand description
Caching and prewarming related functionality.
Prewarming executes transactions in parallel before the actual block execution to populate the execution cache with state that will likely be accessed during block processing.
§How Prewarming Works
- Incoming transactions are split into two streams: one for prewarming (executed in parallel) and one for actual execution (executed sequentially)
- Prewarming tasks execute transactions in parallel using shared caches
- When actual block execution happens, it benefits from the warmed cache
Structs§
- Prewarm
Cache Task - A task that is responsible for caching and prewarming the cache by executing transactions individually in parallel.
- Prewarm
Context - Context required by tx execution tasks.
- Prewarm
Metrics - Metrics for transactions prewarming.
Enums§
- Prewarm
Mode - Determines the prewarming mode: transaction-based, BAL-based, or skipped.
- Prewarm
Task Event - The events the pre-warm task can handle.