mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 19:54:34 +00:00
fix exit conditions
This commit is contained in:
parent
6f058c2756
commit
9cff4ae653
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user