Merge pull request #342 from akhila-raju/patch-1

Remove line repeat in activate_validator & initiate_validator_exit
This commit is contained in:
Danny Ryan 2018-12-19 21:20:54 -06:00 committed by GitHub
commit ea30f20150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -1317,7 +1317,6 @@ def activate_validator(state: BeaconState,
if validator.status != PENDING_ACTIVATION:
return
validator = state.validator_registry[index]
validator.status = ACTIVE
validator.latest_status_change_slot = state.slot
state.validator_registry_delta_chain_tip = get_new_validator_registry_delta_chain_tip(
@ -1339,7 +1338,6 @@ def initiate_validator_exit(state: BeaconState,
if validator.status != ACTIVE:
return
validator = state.validator_registry[index]
validator.status = ACTIVE_PENDING_EXIT
validator.latest_status_change_slot = state.slot
```