Merge pull request #342 from akhila-raju/patch-1
Remove line repeat in activate_validator & initiate_validator_exit
This commit is contained in:
commit
ea30f20150
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue