Upgrade to EIP-7732

This commit is contained in:
Mark Mackey
2024-09-03 11:33:37 -05:00
parent fedc6d6b0a
commit de1535789c
11 changed files with 164 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
use crate::upgrade::{
upgrade_to_altair, upgrade_to_bellatrix, upgrade_to_capella, upgrade_to_deneb,
upgrade_to_electra,
upgrade_to_eip7732, upgrade_to_electra,
};
use crate::{per_epoch_processing::EpochProcessingSummary, *};
use safe_arith::{ArithError, SafeArith};
@@ -70,6 +70,10 @@ pub fn per_slot_processing<E: EthSpec>(
if spec.electra_fork_epoch == Some(state.current_epoch()) {
upgrade_to_electra(state, spec)?;
}
// EIP-7732.
if spec.eip7732_fork_epoch == Some(state.current_epoch()) {
upgrade_to_eip7732(state, spec)?;
}
// Additionally build all caches so that all valid states that are advanced always have
// committee caches built, and we don't have to worry about initialising them at higher