@@ -377,7 +377,7 @@ impl ValidationBackend for MockValidateCandidateBackend {
377
377
result
378
378
}
379
379
380
- async fn precheck_pvf ( & mut self , _pvf : PvfPrepData ) -> Result < PrepareStats , PrepareError > {
380
+ async fn precheck_pvf ( & mut self , _pvf : PvfPrepData ) -> Result < ( ) , PrepareError > {
381
381
unreachable ! ( )
382
382
}
383
383
}
@@ -1014,11 +1014,11 @@ fn pov_decompression_failure_is_invalid() {
1014
1014
}
1015
1015
1016
1016
struct MockPreCheckBackend {
1017
- result : Result < PrepareStats , PrepareError > ,
1017
+ result : Result < ( ) , PrepareError > ,
1018
1018
}
1019
1019
1020
1020
impl MockPreCheckBackend {
1021
- fn with_hardcoded_result ( result : Result < PrepareStats , PrepareError > ) -> Self {
1021
+ fn with_hardcoded_result ( result : Result < ( ) , PrepareError > ) -> Self {
1022
1022
Self { result }
1023
1023
}
1024
1024
}
@@ -1034,7 +1034,7 @@ impl ValidationBackend for MockPreCheckBackend {
1034
1034
unreachable ! ( )
1035
1035
}
1036
1036
1037
- async fn precheck_pvf ( & mut self , _pvf : PvfPrepData ) -> Result < PrepareStats , PrepareError > {
1037
+ async fn precheck_pvf ( & mut self , _pvf : PvfPrepData ) -> Result < ( ) , PrepareError > {
1038
1038
self . result . clone ( )
1039
1039
}
1040
1040
}
@@ -1051,7 +1051,7 @@ fn precheck_works() {
1051
1051
1052
1052
let ( check_fut, check_result) = precheck_pvf (
1053
1053
ctx. sender ( ) ,
1054
- MockPreCheckBackend :: with_hardcoded_result ( Ok ( PrepareStats :: default ( ) ) ) ,
1054
+ MockPreCheckBackend :: with_hardcoded_result ( Ok ( ( ) ) ) ,
1055
1055
relay_parent,
1056
1056
validation_code_hash,
1057
1057
)
@@ -1113,7 +1113,7 @@ fn precheck_invalid_pvf_blob_compression() {
1113
1113
1114
1114
let ( check_fut, check_result) = precheck_pvf (
1115
1115
ctx. sender ( ) ,
1116
- MockPreCheckBackend :: with_hardcoded_result ( Ok ( PrepareStats :: default ( ) ) ) ,
1116
+ MockPreCheckBackend :: with_hardcoded_result ( Ok ( ( ) ) ) ,
1117
1117
relay_parent,
1118
1118
validation_code_hash,
1119
1119
)
0 commit comments