Skip to main content

Module overlay

Module overlay 

Source
Expand description

Per-simulation state overlays layered over a snapshot or the live cache.

An EvmOverlay wraps a read-only base (an EvmSnapshot or the cache itself) with a scratch write layer, so a simulation can mutate balances, storage, and code and run calls without disturbing the base or other overlays. Overlays are the Send unit of parallel fan-out: snapshot once, clone cheaply, overlay per candidate. Reads fall through the write layer to the base; writes and reverts stay local to the overlay.

Structsยง

EvmOverlay
Per-simulation mutable overlay on an immutable snapshot.