Skip to content

Commit

Permalink
Merge pull request #784 from ethereum/JustinDrake-patch-12
Browse files Browse the repository at this point in the history
Milder ejections
  • Loading branch information
djrtwo authored Mar 19, 2019
2 parents 4111797 + 3f46010 commit fe3eef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ def process_ejections(state: BeaconState) -> None:
"""
for index in get_active_validator_indices(state.validator_registry, get_current_epoch(state)):
if state.validator_balances[index] < EJECTION_BALANCE:
exit_validator(state, index)
initiate_validator_exit(state, index)
```

#### Validator registry and shuffling seed data
Expand Down
2 changes: 1 addition & 1 deletion tests/phase0/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def test_ejection(state):
block.slot += spec.SLOTS_PER_EPOCH
state_transition(post_state, block)

assert post_state.validator_registry[validator_index].exit_epoch < spec.FAR_FUTURE_EPOCH
assert post_state.validator_registry[validator_index].initiated_exit == True

return pre_state, [block], post_state

Expand Down

0 comments on commit fe3eef2

Please sign in to comment.