From a5b1f2cc0ab204eae782632accf6e7a62601f630 Mon Sep 17 00:00:00 2001 From: vbuterin Date: Thu, 3 Jan 2019 19:44:39 -0600 Subject: [PATCH] Moved comment and changed conditional --- specs/core/0_beacon-chain.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 1daa1e789..e86256c29 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1324,12 +1324,12 @@ def initiate_validator_exit(state: BeaconState, index: int) -> None: def exit_validator(state: BeaconState, index: int) -> None: validator = state.validator_registry[index] - if validator.exit_slot < state.slot + ENTRY_EXIT_DELAY: + # The following updates only occur if not previous exited + if validator.exit_slot <= state.slot + ENTRY_EXIT_DELAY: return validator.exit_slot = state.slot + ENTRY_EXIT_DELAY - # The following updates only occur if not previous exited state.validator_registry_exit_count += 1 validator.exit_count = state.validator_registry_exit_count state.validator_registry_delta_chain_tip = hash_tree_root(