Skip to content

Commit

Permalink
Update 0_beacon-chain.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDrake authored Apr 14, 2019
1 parent 875b2ba commit 3394368
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1320,8 +1320,7 @@ def initiate_validator_exit(state: BeaconState, index: ValidatorIndex) -> None:

# Compute exit queue epoch
exit_epochs = [v.exit_epoch for v in state.validator_registry if v.exit_epoch != FAR_FUTURE_EPOCH]
exit_epochs += [get_delayed_activation_exit_epoch(get_current_epoch(state))]
exit_queue_epoch = sorted(exit_epochs)[-1]
exit_queue_epoch = sorted(exit_epochs + [get_delayed_activation_exit_epoch(get_current_epoch(state))])[-1]
exit_queue_churn = len([v for v in state.validator_registry if v.exit_epoch == exit_queue_epoch])
if exit_queue_churn >= get_churn_limit(state):
exit_queue_epoch += 1
Expand Down

0 comments on commit 3394368

Please sign in to comment.