@@ -39,7 +39,7 @@ def test_basic_consolidation_in_current_consolidation_epoch(spec, state):
3939 spec , state , source_index , address = source_address
4040 )
4141 # Make consolidation with source address
42- consolidation = spec .ExecutionLayerConsolidationRequest (
42+ consolidation = spec .ConsolidationRequest (
4343 source_address = source_address ,
4444 source_pubkey = state .validators [source_index ].pubkey ,
4545 target_pubkey = state .validators [target_index ].pubkey ,
@@ -88,7 +88,7 @@ def test_basic_consolidation_in_new_consolidation_epoch(spec, state):
8888 spec , state , source_index , address = source_address
8989 )
9090 # Make consolidation with source address
91- consolidation = spec .ExecutionLayerConsolidationRequest (
91+ consolidation = spec .ConsolidationRequest (
9292 source_address = source_address ,
9393 source_pubkey = state .validators [source_index ].pubkey ,
9494 target_pubkey = state .validators [target_index ].pubkey ,
@@ -131,7 +131,7 @@ def test_basic_consolidation_with_preexisting_churn(spec, state):
131131 spec , state , source_index , address = source_address
132132 )
133133 # Make consolidation with source address
134- consolidation = spec .ExecutionLayerConsolidationRequest (
134+ consolidation = spec .ConsolidationRequest (
135135 source_address = source_address ,
136136 source_pubkey = state .validators [source_index ].pubkey ,
137137 target_pubkey = state .validators [target_index ].pubkey ,
@@ -178,7 +178,7 @@ def test_basic_consolidation_with_insufficient_preexisting_churn(spec, state):
178178 spec , state , source_index , address = source_address
179179 )
180180 # Make consolidation with source address
181- consolidation = spec .ExecutionLayerConsolidationRequest (
181+ consolidation = spec .ConsolidationRequest (
182182 source_address = source_address ,
183183 source_pubkey = state .validators [source_index ].pubkey ,
184184 target_pubkey = state .validators [target_index ].pubkey ,
@@ -229,7 +229,7 @@ def test_basic_consolidation_with_compounding_credentials(spec, state):
229229 spec , state , source_index , address = source_address
230230 )
231231 # Make consolidation with source address
232- consolidation = spec .ExecutionLayerConsolidationRequest (
232+ consolidation = spec .ConsolidationRequest (
233233 source_address = source_address ,
234234 source_pubkey = state .validators [source_index ].pubkey ,
235235 target_pubkey = state .validators [target_index ].pubkey ,
@@ -274,7 +274,7 @@ def test_consolidation_churn_limit_balance(spec, state):
274274 spec , state , source_index , address = source_address
275275 )
276276 # Make consolidation with source address
277- consolidation = spec .ExecutionLayerConsolidationRequest (
277+ consolidation = spec .ConsolidationRequest (
278278 source_address = source_address ,
279279 source_pubkey = state .validators [source_index ].pubkey ,
280280 target_pubkey = state .validators [target_index ].pubkey ,
@@ -322,7 +322,7 @@ def test_consolidation_balance_larger_than_churn_limit(spec, state):
322322 spec , state , source_index , address = source_address
323323 )
324324 # Make consolidation with source address
325- consolidation = spec .ExecutionLayerConsolidationRequest (
325+ consolidation = spec .ConsolidationRequest (
326326 source_address = source_address ,
327327 source_pubkey = state .validators [source_index ].pubkey ,
328328 target_pubkey = state .validators [target_index ].pubkey ,
@@ -369,7 +369,7 @@ def test_consolidation_balance_through_two_churn_epochs(spec, state):
369369 spec , state , source_index , address = source_address
370370 )
371371 # Make consolidation with source address
372- consolidation = spec .ExecutionLayerConsolidationRequest (
372+ consolidation = spec .ConsolidationRequest (
373373 source_address = source_address ,
374374 source_pubkey = state .validators [source_index ].pubkey ,
375375 target_pubkey = state .validators [target_index ].pubkey ,
@@ -415,7 +415,7 @@ def test_incorrect_source_equals_target(spec, state):
415415 spec , state , source_index , address = source_address
416416 )
417417 # Make consolidation from source to source
418- consolidation = spec .ExecutionLayerConsolidationRequest (
418+ consolidation = spec .ConsolidationRequest (
419419 source_address = source_address ,
420420 source_pubkey = state .validators [source_index ].pubkey ,
421421 target_pubkey = state .validators [source_index ].pubkey ,
@@ -447,7 +447,7 @@ def test_incorrect_exceed_pending_consolidations_limit(spec, state):
447447 set_eth1_withdrawal_credential_with_balance (
448448 spec , state , source_index , address = source_address
449449 )
450- consolidation = spec .ExecutionLayerConsolidationRequest (
450+ consolidation = spec .ConsolidationRequest (
451451 source_address = source_address ,
452452 source_pubkey = state .validators [source_index ].pubkey ,
453453 target_pubkey = state .validators [target_index ].pubkey ,
@@ -476,7 +476,7 @@ def test_incorrect_not_enough_consolidation_churn_available(spec, state):
476476 set_eth1_withdrawal_credential_with_balance (
477477 spec , state , source_index , address = source_address
478478 )
479- consolidation = spec .ExecutionLayerConsolidationRequest (
479+ consolidation = spec .ConsolidationRequest (
480480 source_address = source_address ,
481481 source_pubkey = state .validators [source_index ].pubkey ,
482482 target_pubkey = state .validators [target_index ].pubkey ,
@@ -504,7 +504,7 @@ def test_incorrect_exited_source(spec, state):
504504 set_eth1_withdrawal_credential_with_balance (
505505 spec , state , source_index , address = source_address
506506 )
507- consolidation = spec .ExecutionLayerConsolidationRequest (
507+ consolidation = spec .ConsolidationRequest (
508508 source_address = source_address ,
509509 source_pubkey = state .validators [source_index ].pubkey ,
510510 target_pubkey = state .validators [target_index ].pubkey ,
@@ -536,7 +536,7 @@ def test_incorrect_exited_target(spec, state):
536536 set_eth1_withdrawal_credential_with_balance (
537537 spec , state , source_index , address = source_address
538538 )
539- consolidation = spec .ExecutionLayerConsolidationRequest (
539+ consolidation = spec .ConsolidationRequest (
540540 source_address = source_address ,
541541 source_pubkey = state .validators [source_index ].pubkey ,
542542 target_pubkey = state .validators [target_index ].pubkey ,
@@ -566,7 +566,7 @@ def test_incorrect_inactive_source(spec, state):
566566 set_eth1_withdrawal_credential_with_balance (
567567 spec , state , source_index , address = source_address
568568 )
569- consolidation = spec .ExecutionLayerConsolidationRequest (
569+ consolidation = spec .ConsolidationRequest (
570570 source_address = source_address ,
571571 source_pubkey = state .validators [source_index ].pubkey ,
572572 target_pubkey = state .validators [target_index ].pubkey ,
@@ -598,7 +598,7 @@ def test_incorrect_inactive_target(spec, state):
598598 set_eth1_withdrawal_credential_with_balance (
599599 spec , state , source_index , address = source_address
600600 )
601- consolidation = spec .ExecutionLayerConsolidationRequest (
601+ consolidation = spec .ConsolidationRequest (
602602 source_address = source_address ,
603603 source_pubkey = state .validators [source_index ].pubkey ,
604604 target_pubkey = state .validators [target_index ].pubkey ,
@@ -627,7 +627,7 @@ def test_incorrect_no_source_execution_withdrawal_credential(spec, state):
627627 source_index = spec .get_active_validator_indices (state , current_epoch )[0 ]
628628 target_index = spec .get_active_validator_indices (state , current_epoch )[1 ]
629629 source_address = b"\x22 " * 20
630- consolidation = spec .ExecutionLayerConsolidationRequest (
630+ consolidation = spec .ConsolidationRequest (
631631 source_address = source_address ,
632632 source_pubkey = state .validators [source_index ].pubkey ,
633633 target_pubkey = state .validators [target_index ].pubkey ,
@@ -656,7 +656,7 @@ def test_incorrect_no_target_execution_withdrawal_credential(spec, state):
656656 set_eth1_withdrawal_credential_with_balance (
657657 spec , state , source_index , address = source_address
658658 )
659- consolidation = spec .ExecutionLayerConsolidationRequest (
659+ consolidation = spec .ConsolidationRequest (
660660 source_address = source_address ,
661661 source_pubkey = state .validators [source_index ].pubkey ,
662662 target_pubkey = state .validators [target_index ].pubkey ,
@@ -684,7 +684,7 @@ def test_incorrect_incorrect_source_address(spec, state):
684684 spec , state , source_index , address = source_address
685685 )
686686 # Make consolidation with different source address
687- consolidation = spec .ExecutionLayerConsolidationRequest (
687+ consolidation = spec .ConsolidationRequest (
688688 source_address = b"\x33 " * 20 ,
689689 source_pubkey = state .validators [source_index ].pubkey ,
690690 target_pubkey = state .validators [target_index ].pubkey ,
@@ -714,7 +714,7 @@ def test_incorrect_unknown_source_pubkey(spec, state):
714714 spec , state , source_index , address = source_address
715715 )
716716 # Make consolidation with different source pubkey
717- consolidation = spec .ExecutionLayerConsolidationRequest (
717+ consolidation = spec .ConsolidationRequest (
718718 source_address = source_address ,
719719 source_pubkey = b"\x00 " * 48 ,
720720 target_pubkey = state .validators [target_index ].pubkey ,
@@ -744,7 +744,7 @@ def test_incorrect_unknown_target_pubkey(spec, state):
744744 spec , state , source_index , address = source_address
745745 )
746746 # Make consolidation with different target pubkey
747- consolidation = spec .ExecutionLayerConsolidationRequest (
747+ consolidation = spec .ConsolidationRequest (
748748 source_address = b"\x33 " * 20 ,
749749 source_pubkey = state .validators [source_index ].pubkey ,
750750 target_pubkey = b"\x00 " * 48 ,
@@ -760,7 +760,7 @@ def run_consolidation_processing(spec, state, consolidation, success=True):
760760 """
761761 Run ``process_consolidation``, yielding:
762762 - pre-state ('pre')
763- - execution_layer_consolidation_request ('execution_layer_consolidation_request ')
763+ - consolidation_request ('consolidation_request ')
764764 - post-state ('post').
765765 If ``valid == False``, run expecting ``AssertionError``
766766 """
@@ -778,9 +778,9 @@ def run_consolidation_processing(spec, state, consolidation, success=True):
778778 pre_state = state .copy ()
779779
780780 yield 'pre' , state
781- yield 'execution_layer_consolidation_request ' , consolidation
781+ yield 'consolidation_request ' , consolidation
782782
783- spec .process_execution_layer_consolidation_request (state , consolidation )
783+ spec .process_consolidation_request (state , consolidation )
784784
785785 yield 'post' , state
786786
0 commit comments