From 9cff4ae653b4f9a6925a8c45eb32c6c36a038b1a Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Mon, 10 Dec 2018 15:56:22 -0600 Subject: [PATCH] fix exit conditions --- 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 a59015390..a1ca312f2 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1238,10 +1238,10 @@ def exit_validator(index: int, whistleblower.balance += whistleblower_reward validator.balance -= whistleblower_reward - if prev_status != ACTIVE: + if prev_status in [EXITED_WITH_PENALTY, EXITED_WITHOUT_PENALTY] return - # The following updates only occur if previously ACTIVE + # 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 = get_new_validator_registry_delta_chain_tip(