crystallized_state -> state

This commit is contained in:
Hsiao-Wei Wang 2018-11-19 12:48:12 +09:00
parent c3e2c2a46d
commit 54eeb49831
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 2 additions and 2 deletions

View File

@ -707,8 +707,8 @@ def add_validator(validators: List[ValidatorRecord],
def exit_validator(index, state, penalize, current_slot):
validator = state.validators[index]
validator.exit_slot = current_slot
validator.exit_seq = crystallized_state.current_exit_seq
crystallized_state.current_exit_seq += 1
validator.exit_seq = state.current_exit_seq
state.current_exit_seq += 1
if penalize:
validator.status = PENALIZED
state.deposits_penalized_in_period[current_slot // COLLECTIVE_PENALTY_CALCULATION_PERIOD] += validator.balance