@@ -53,8 +53,8 @@ class OperationType(Enum):
5353 VOLUNTARY_EXIT = auto ()
5454 BLS_TO_EXECUTION_CHANGE = auto ()
5555 DEPOSIT_REQUEST = auto ()
56- FULL_WITHDRAWAL_REQUEST = auto ()
57- SWITCH_TO_COMPOUNDING_REQUEST = auto ()
56+ WITHDRAWAL_REQUEST = auto ()
57+ CONSOLIDATION_REQUEST = auto ()
5858
5959
6060def _set_operations_by_dict (block , operation_dict ):
@@ -348,12 +348,12 @@ def run_transition_with_operation(state,
348348 amount = post_spec .MIN_ACTIVATION_BALANCE
349349 deposit_request = prepare_deposit_request (post_spec , selected_validator_index , amount , signed = True )
350350 operation_dict = {'execution_requests.deposits' : [deposit_request ]}
351- elif operation_type == OperationType .FULL_WITHDRAWAL_REQUEST :
351+ elif operation_type == OperationType .WITHDRAWAL_REQUEST :
352352 selected_validator_index = 0
353353 withdrawal_request = prepare_withdrawal_request (
354354 post_spec , state , selected_validator_index , amount = post_spec .FULL_EXIT_REQUEST_AMOUNT )
355355 operation_dict = {'execution_requests.withdrawals' : [withdrawal_request ]}
356- elif operation_type == OperationType .SWITCH_TO_COMPOUNDING_REQUEST :
356+ elif operation_type == OperationType .CONSOLIDATION_REQUEST :
357357 selected_validator_index = 0
358358 consolidation_request = prepare_switch_to_compounding_request (post_spec , state , selected_validator_index )
359359 operation_dict = {'execution_requests.consolidations' : [consolidation_request ]}
@@ -389,10 +389,10 @@ def _check_state():
389389 signature = deposit_request .signature ,
390390 slot = state .slot ,
391391 )]
392- elif operation_type == OperationType .FULL_WITHDRAWAL_REQUEST :
392+ elif operation_type == OperationType .WITHDRAWAL_REQUEST :
393393 validator = state .validators [selected_validator_index ]
394394 assert validator .exit_epoch < post_spec .FAR_FUTURE_EPOCH
395- elif operation_type == OperationType .SWITCH_TO_COMPOUNDING_REQUEST :
395+ elif operation_type == OperationType .CONSOLIDATION_REQUEST :
396396 validator = state .validators [selected_validator_index ]
397397 assert validator .withdrawal_credentials [:1 ] == post_spec .COMPOUNDING_WITHDRAWAL_PREFIX
398398
0 commit comments