Skip to main content

apply

Function apply 

Source
pub fn apply<M: DiffTarget>(state: M, delta: &ArchivedBeaconStateDelta) -> M
Expand description

Applies a previously created beacon-state delta.

The supplied DiffTarget is modified in place by applying each component delta to reconstruct the target state.

The state’s fork must match the fork recorded in the delta.

§Panics

Panics if the delta was created for a different consensus fork.

§Complexity

Linear in the size of the recorded delta.