pub fn apply_validators(base: &mut Vec<u8>, delta: &ArchivedValidatorsDiff)Expand description
Applies a validator delta to an SSZ validator registry in-place.
After successful application, base is byte-for-byte identical to the
original target registry used to produce delta.
For non-slashed validators, withdrawable_epoch is reconstructed
deterministically from exit_epoch according to the Ethereum consensus
specification rather than being stored explicitly in the delta.
Newly appended validators are copied directly to the end of the registry.
ยงPanics
Panics in debug builds if a patch references a validator outside the current registry.
Supplying a delta that was not produced from the provided base registry results in undefined reconstructed state.