Merge pull request #424 from terenc3t/patch-32

Removed an unused line
This commit is contained in:
Danny Ryan 2019-01-10 10:41:55 -06:00 committed by GitHub
commit 05fdfcb8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -1742,7 +1742,6 @@ def process_penalties_and_exits(state: BeaconState) -> None:
sorted_indices = sorted(eligible_indices, key=lambda index: state.validator_registry[index].exit_count)
withdrawn_so_far = 0
for index in sorted_indices:
validator = state.validator_registry[index]
prepare_validator_for_withdrawal(state, index)
withdrawn_so_far += 1
if withdrawn_so_far >= MAX_WITHDRAWALS_PER_EPOCH: