@@ -33,7 +33,7 @@ use polkadot_node_subsystem::{
3333} ;
3434use polkadot_node_subsystem_test_helpers as test_helpers;
3535use polkadot_primitives:: {
36- CandidateDescriptor , GroupRotationInfo , HeadData , PersistedValidationData , PvfExecTimeoutKind ,
36+ CandidateDescriptor , GroupRotationInfo , HeadData , PersistedValidationData , PvfExecKind ,
3737 ScheduledCore , SessionIndex , LEGACY_MIN_BACKING_VOTES ,
3838} ;
3939use sp_application_crypto:: AppCrypto ;
@@ -344,14 +344,14 @@ async fn assert_validate_from_exhaustive(
344344 validation_data,
345345 validation_code,
346346 candidate_receipt,
347- exec_timeout_kind ,
347+ exec_kind ,
348348 response_sender,
349349 ..
350350 } ,
351351 ) if validation_data == * assert_pvd &&
352352 validation_code == * assert_validation_code &&
353353 * pov == * assert_pov && & candidate_receipt. descriptor == assert_candidate. descriptor( ) &&
354- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
354+ exec_kind == PvfExecKind :: Backing &&
355355 candidate_receipt. commitments_hash == assert_candidate. commitments. hash( ) =>
356356 {
357357 response_sender. send( Ok ( ValidationResult :: Valid (
@@ -550,14 +550,14 @@ fn backing_works() {
550550 validation_code,
551551 candidate_receipt,
552552 pov,
553- exec_timeout_kind ,
553+ exec_kind ,
554554 response_sender,
555555 ..
556556 } ,
557557 ) if validation_data == pvd_ab &&
558558 validation_code == validation_code_ab &&
559559 * pov == pov_ab && & candidate_receipt. descriptor == candidate_a. descriptor( ) &&
560- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
560+ exec_kind == PvfExecKind :: Backing &&
561561 candidate_receipt. commitments_hash == candidate_a_commitments_hash =>
562562 {
563563 response_sender. send( Ok (
@@ -729,14 +729,14 @@ fn backing_works_while_validation_ongoing() {
729729 validation_code,
730730 candidate_receipt,
731731 pov,
732- exec_timeout_kind ,
732+ exec_kind ,
733733 response_sender,
734734 ..
735735 } ,
736736 ) if validation_data == pvd_abc &&
737737 validation_code == validation_code_abc &&
738738 * pov == pov_abc && & candidate_receipt. descriptor == candidate_a. descriptor( ) &&
739- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
739+ exec_kind == PvfExecKind :: Backing &&
740740 candidate_a_commitments_hash == candidate_receipt. commitments_hash =>
741741 {
742742 // we never validate the candidate. our local node
@@ -890,14 +890,14 @@ fn backing_misbehavior_works() {
890890 validation_code,
891891 candidate_receipt,
892892 pov,
893- exec_timeout_kind ,
893+ exec_kind ,
894894 response_sender,
895895 ..
896896 } ,
897897 ) if validation_data == pvd_a &&
898898 validation_code == validation_code_a &&
899899 * pov == pov_a && & candidate_receipt. descriptor == candidate_a. descriptor( ) &&
900- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
900+ exec_kind == PvfExecKind :: Backing &&
901901 candidate_a_commitments_hash == candidate_receipt. commitments_hash =>
902902 {
903903 response_sender. send( Ok (
@@ -1057,14 +1057,14 @@ fn backing_dont_second_invalid() {
10571057 validation_code,
10581058 candidate_receipt,
10591059 pov,
1060- exec_timeout_kind ,
1060+ exec_kind ,
10611061 response_sender,
10621062 ..
10631063 } ,
10641064 ) if validation_data == pvd_a &&
10651065 validation_code == validation_code_a &&
10661066 * pov == pov_block_a && & candidate_receipt. descriptor == candidate_a. descriptor( ) &&
1067- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
1067+ exec_kind == PvfExecKind :: Backing &&
10681068 candidate_a. commitments. hash( ) == candidate_receipt. commitments_hash =>
10691069 {
10701070 response_sender. send( Ok ( ValidationResult :: Invalid ( InvalidCandidate :: BadReturn ) ) ) . unwrap( ) ;
@@ -1097,14 +1097,14 @@ fn backing_dont_second_invalid() {
10971097 validation_code,
10981098 candidate_receipt,
10991099 pov,
1100- exec_timeout_kind ,
1100+ exec_kind ,
11011101 response_sender,
11021102 ..
11031103 } ,
11041104 ) if validation_data == pvd_b &&
11051105 validation_code == validation_code_b &&
11061106 * pov == pov_block_b && & candidate_receipt. descriptor == candidate_b. descriptor( ) &&
1107- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
1107+ exec_kind == PvfExecKind :: Backing &&
11081108 candidate_b. commitments. hash( ) == candidate_receipt. commitments_hash =>
11091109 {
11101110 response_sender. send( Ok (
@@ -1224,14 +1224,14 @@ fn backing_second_after_first_fails_works() {
12241224 validation_code,
12251225 candidate_receipt,
12261226 pov,
1227- exec_timeout_kind ,
1227+ exec_kind ,
12281228 response_sender,
12291229 ..
12301230 } ,
12311231 ) if validation_data == pvd_a &&
12321232 validation_code == validation_code_a &&
12331233 * pov == pov_a && & candidate_receipt. descriptor == candidate. descriptor( ) &&
1234- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
1234+ exec_kind == PvfExecKind :: Backing &&
12351235 candidate. commitments. hash( ) == candidate_receipt. commitments_hash =>
12361236 {
12371237 response_sender. send( Ok ( ValidationResult :: Invalid ( InvalidCandidate :: BadReturn ) ) ) . unwrap( ) ;
@@ -1368,14 +1368,14 @@ fn backing_works_after_failed_validation() {
13681368 validation_code,
13691369 candidate_receipt,
13701370 pov,
1371- exec_timeout_kind ,
1371+ exec_kind ,
13721372 response_sender,
13731373 ..
13741374 } ,
13751375 ) if validation_data == pvd_a &&
13761376 validation_code == validation_code_a &&
13771377 * pov == pov_a && & candidate_receipt. descriptor == candidate. descriptor( ) &&
1378- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
1378+ exec_kind == PvfExecKind :: Backing &&
13791379 candidate. commitments. hash( ) == candidate_receipt. commitments_hash =>
13801380 {
13811381 response_sender. send( Err ( ValidationFailed ( "Internal test error" . into( ) ) ) ) . unwrap( ) ;
@@ -1634,13 +1634,13 @@ fn retry_works() {
16341634 validation_code,
16351635 candidate_receipt,
16361636 pov,
1637- exec_timeout_kind ,
1637+ exec_kind ,
16381638 ..
16391639 } ,
16401640 ) if validation_data == pvd_a &&
16411641 validation_code == validation_code_a &&
16421642 * pov == pov_a && & candidate_receipt. descriptor == candidate. descriptor( ) &&
1643- exec_timeout_kind == PvfExecTimeoutKind :: Backing &&
1643+ exec_kind == PvfExecKind :: Backing &&
16441644 candidate. commitments. hash( ) == candidate_receipt. commitments_hash
16451645 ) ;
16461646 virtual_overseer
0 commit comments