mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-19 14:04:25 +00:00
crystallized_state -> state
This commit is contained in:
parent
c3e2c2a46d
commit
54eeb49831
@ -707,8 +707,8 @@ def add_validator(validators: List[ValidatorRecord],
|
|||||||
def exit_validator(index, state, penalize, current_slot):
|
def exit_validator(index, state, penalize, current_slot):
|
||||||
validator = state.validators[index]
|
validator = state.validators[index]
|
||||||
validator.exit_slot = current_slot
|
validator.exit_slot = current_slot
|
||||||
validator.exit_seq = crystallized_state.current_exit_seq
|
validator.exit_seq = state.current_exit_seq
|
||||||
crystallized_state.current_exit_seq += 1
|
state.current_exit_seq += 1
|
||||||
if penalize:
|
if penalize:
|
||||||
validator.status = PENALIZED
|
validator.status = PENALIZED
|
||||||
state.deposits_penalized_in_period[current_slot // COLLECTIVE_PENALTY_CALCULATION_PERIOD] += validator.balance
|
state.deposits_penalized_in_period[current_slot // COLLECTIVE_PENALTY_CALCULATION_PERIOD] += validator.balance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user