From 85b752be5e43a3b462722bd37bbaadc692719f92 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Tue, 9 Jul 2024 18:52:23 +0600 Subject: [PATCH] Fix by @pawanjay176 Co-authored-by: Pawan Dhananjay --- specs/electra/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/electra/beacon-chain.md b/specs/electra/beacon-chain.md index bce8ed2a3..fb11c463a 100644 --- a/specs/electra/beacon-chain.md +++ b/specs/electra/beacon-chain.md @@ -943,7 +943,7 @@ def process_pending_deposits(state: BeaconState) -> None: is_validator_exited = False is_validator_withdrawn = False validator_pubkeys = [v.pubkey for v in state.validators] - if deposit.pubkey: + if deposit.pubkey in validator_pubkeys: validator = state.validators[ValidatorIndex(validator_pubkeys.index(deposit.pubkey))] is_validator_exited = validator.exit_epoch < FAR_FUTURE_EPOCH is_validator_withdrawn = validator.withdrawable_epoch < get_current_epoch(state)