Skip to main content

Module ebpp

Module ebpp 

Source
Expand description

The Epoch Boundary Preparation Phase (EBPP) is an optimization offered by the program cache in order to preemptively reload programs for the anticipated upcoming environment based on feature activations.

Without such a phase, pending features would activate at the epoch boundary and change the ProgramRuntimeEnvironment, leaving no cached program usable under the new environment. Each program would then have to be reloaded, verified, and compiled on first use, slowing transaction execution at the start of the epoch.

Instead, if the anticipated environment differs from the current one, one program per slot is recompiled against it during the final slots of the epoch, starting with the highest retention score. This is best-effort: any program not recompiled in time is loaded on demand after the boundary.

Structsยง

EpochBoundaryPreparation
Globally manages the transition between environments at the epoch boundary