@@ -108,70 +108,8 @@ pub(crate) fn load_regression_records(records: &Path) -> Result<Vec<SealRegressi
108
108
Ok ( records)
109
109
}
110
110
111
- // On MacOS, we only verify production parameter sizes and published test sector sizes
112
- #[ cfg( target_os = "macos" ) ]
113
- pub ( crate ) fn regression_verify_seal_proof ( record : & SealRegressionRecord ) -> Result < bool > {
114
- let r = record;
115
-
116
- let sector_size: u64 = r. porep_config . sector_size . into ( ) ;
117
- let verified = match sector_size {
118
- SECTOR_SIZE_2_KIB | SECTOR_SIZE_4_KIB | SECTOR_SIZE_16_KIB | SECTOR_SIZE_32_KIB => Ok ( true ) ,
119
- SECTOR_SIZE_8_MIB => verify_seal :: < SectorShape8MiB > (
120
- & r. porep_config ,
121
- r. comm_r ,
122
- r. comm_d ,
123
- r. prover_id ,
124
- r. sector_id ,
125
- r. ticket ,
126
- r. seed ,
127
- & r. proof ,
128
- ) ,
129
- SECTOR_SIZE_512_MIB => verify_seal :: < SectorShape512MiB > (
130
- & r. porep_config ,
131
- r. comm_r ,
132
- r. comm_d ,
133
- r. prover_id ,
134
- r. sector_id ,
135
- r. ticket ,
136
- r. seed ,
137
- & r. proof ,
138
- ) ,
139
- SECTOR_SIZE_1_GIB => Ok ( true ) ,
140
- SECTOR_SIZE_32_GIB => verify_seal :: < SectorShape32GiB > (
141
- & r. porep_config ,
142
- r. comm_r ,
143
- r. comm_d ,
144
- r. prover_id ,
145
- r. sector_id ,
146
- r. ticket ,
147
- r. seed ,
148
- & r. proof ,
149
- ) ,
150
- SECTOR_SIZE_64_GIB => verify_seal :: < SectorShape64GiB > (
151
- & r. porep_config ,
152
- r. comm_r ,
153
- r. comm_d ,
154
- r. prover_id ,
155
- r. sector_id ,
156
- r. ticket ,
157
- r. seed ,
158
- & r. proof ,
159
- ) ,
160
- _ => {
161
- error ! (
162
- "Cannot verify proof: Unsupported sector size [{}]" ,
163
- sector_size
164
- ) ;
165
- Ok ( false )
166
- }
167
- } ?;
168
-
169
- Ok ( verified)
170
- }
171
-
172
111
#[ allow( non_snake_case) ]
173
112
#[ allow( unused_variables) ]
174
- #[ cfg( not( target_os = "macos" ) ) ]
175
113
pub ( crate ) fn regression_verify_seal_proof ( record : & SealRegressionRecord ) -> Result < bool > {
176
114
let r = record;
177
115
@@ -279,7 +217,10 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
279
217
Ok ( verified)
280
218
}
281
219
220
+ // Skip this test on MacOS since it does not have the required
221
+ // parameters for verification
282
222
#[ test]
223
+ #[ cfg( not( target_os = "macos" ) ) ]
283
224
fn run_seal_regression_tests ( ) -> Result < ( ) > {
284
225
fil_logger:: maybe_init ( ) ;
285
226
0 commit comments