Make modified helpers in electra fork aware (#5698)

* Make modified helpers in electra fork aware

* Make more functions fork aware

* formatting fixes only.
This commit is contained in:
Pawan Dhananjay
2024-05-03 15:24:01 +05:30
committed by GitHub
parent d3d429ff5c
commit 1af3f0f9d8
4 changed files with 96 additions and 12 deletions

View File

@@ -466,7 +466,7 @@ fn process_single_registry_update(
) -> Result<(), Error> {
let current_epoch = state_ctxt.current_epoch;
if validator.is_eligible_for_activation_queue(spec) {
if validator.is_eligible_for_activation_queue(spec, state_ctxt.fork_name) {
validator.make_mut()?.activation_eligibility_epoch = current_epoch.safe_add(1)?;
}