Update specs/core/0_beacon-chain.md

Co-Authored-By: JustinDrake <drakefjustin@gmail.com>
This commit is contained in:
vbuterin 2019-01-30 15:03:42 +00:00 committed by GitHub
parent 5889e9c6db
commit 18e430393e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1960,6 +1960,7 @@ def process_penalties_and_exits(state: BeaconState) -> None:
all_indices = list(range(len(state.validator_registry)))
eligible_indices = filter(eligible, all_indices)
# Sort in order of exit epoch, and validators that exit within the same epoch exit in order of validator index
sorted_indices = sorted(eligible_indices, key=lambda index: state.validator_registry[index].exit_epoch)
withdrawn_so_far = 0
for index in sorted_indices: