update tests

This commit is contained in:
realbigsean
2024-05-09 18:59:53 -04:00
parent 92d0b125c7
commit eb2260222c
6 changed files with 127 additions and 56 deletions

View File

@@ -20,7 +20,7 @@ pub fn initiate_validator_exit<E: EthSpec>(
// Compute exit queue epoch
let exit_queue_epoch = if state.fork_name_unchecked() >= ForkName::Electra {
let effective_balance = state.get_validator(index)?.effective_balance;
let effective_balance = state.get_effective_balance(index)?;
state.compute_exit_epoch_and_update_churn(effective_balance, spec)?
} else {
let delayed_epoch = state.compute_activation_exit_epoch(state.current_epoch(), spec)?;