@@ -4,12 +4,16 @@ use std::path::Path;
4
4
5
5
use anyhow:: Result ;
6
6
use filecoin_proofs:: {
7
- verify_seal, SectorShape16KiB , SectorShape1GiB , SectorShape2KiB , SectorShape32GiB ,
8
- SectorShape32KiB , SectorShape4KiB , SectorShape512MiB , SectorShape64GiB , SectorShape8MiB ,
7
+ verify_seal, SectorShape16KiB , SectorShape2KiB , SectorShape32KiB , SectorShape4KiB ,
9
8
SECTOR_SIZE_16_KIB , SECTOR_SIZE_1_GIB , SECTOR_SIZE_2_KIB , SECTOR_SIZE_32_GIB ,
10
9
SECTOR_SIZE_32_KIB , SECTOR_SIZE_4_KIB , SECTOR_SIZE_512_MIB , SECTOR_SIZE_64_GIB ,
11
10
SECTOR_SIZE_8_MIB ,
12
11
} ;
12
+ #[ cfg( feature = "big-tests" ) ]
13
+ use filecoin_proofs:: {
14
+ SectorShape1GiB , SectorShape32GiB , SectorShape512MiB , SectorShape64GiB , SectorShape8MiB ,
15
+ } ;
16
+
13
17
use log:: { error, info} ;
14
18
use serde:: { Deserialize , Serialize } ;
15
19
@@ -172,6 +176,7 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
172
176
r. seed ,
173
177
& r. proof ,
174
178
) ,
179
+ #[ cfg( feature = "big-tests" ) ]
175
180
SECTOR_SIZE_8_MIB => verify_seal :: < SectorShape8MiB > (
176
181
& r. porep_config ,
177
182
r. comm_r ,
@@ -182,6 +187,7 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
182
187
r. seed ,
183
188
& r. proof ,
184
189
) ,
190
+ #[ cfg( feature = "big-tests" ) ]
185
191
SECTOR_SIZE_512_MIB => verify_seal :: < SectorShape512MiB > (
186
192
& r. porep_config ,
187
193
r. comm_r ,
@@ -192,6 +198,7 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
192
198
r. seed ,
193
199
& r. proof ,
194
200
) ,
201
+ #[ cfg( feature = "big-tests" ) ]
195
202
SECTOR_SIZE_1_GIB => verify_seal :: < SectorShape1GiB > (
196
203
& r. porep_config ,
197
204
r. comm_r ,
@@ -202,6 +209,7 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
202
209
r. seed ,
203
210
& r. proof ,
204
211
) ,
212
+ #[ cfg( feature = "big-tests" ) ]
205
213
SECTOR_SIZE_32_GIB => verify_seal :: < SectorShape32GiB > (
206
214
& r. porep_config ,
207
215
r. comm_r ,
@@ -212,6 +220,7 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
212
220
r. seed ,
213
221
& r. proof ,
214
222
) ,
223
+ #[ cfg( feature = "big-tests" ) ]
215
224
SECTOR_SIZE_64_GIB => verify_seal :: < SectorShape64GiB > (
216
225
& r. porep_config ,
217
226
r. comm_r ,
@@ -222,6 +231,15 @@ pub(crate) fn regression_verify_seal_proof(record: &SealRegressionRecord) -> Res
222
231
r. seed ,
223
232
& r. proof ,
224
233
) ,
234
+ #[ cfg( not( feature = "big-tests" ) ) ]
235
+ SECTOR_SIZE_8_MIB | SECTOR_SIZE_512_MIB | SECTOR_SIZE_1_GIB | SECTOR_SIZE_32_GIB
236
+ | SECTOR_SIZE_64_GIB => {
237
+ info ! (
238
+ "`big-tests` feature is disabled, hence skipping verification for sector size [{}]" ,
239
+ sector_size
240
+ ) ;
241
+ Ok ( true )
242
+ }
225
243
_ => {
226
244
error ! (
227
245
"Cannot verify proof: Unsupported sector size [{}]" ,
0 commit comments