@@ -378,7 +378,7 @@ fn seal_pre_commit_phase1_inner<Tree: 'static + MerkleTreeTrait>(
378
378
let config = registered_proof. as_v1_config ( ) ;
379
379
380
380
let output = filecoin_proofs_v1:: seal_pre_commit_phase1 :: < _ , _ , _ , Tree > (
381
- config,
381
+ & config,
382
382
cache_path,
383
383
in_path,
384
384
out_path,
@@ -462,7 +462,7 @@ fn seal_pre_commit_phase2_inner<Tree: 'static + MerkleTreeTrait>(
462
462
) ?;
463
463
464
464
let output = filecoin_proofs_v1:: seal_pre_commit_phase2 :: < _ , _ , Tree > (
465
- registered_proof. as_v1_config ( ) ,
465
+ & registered_proof. as_v1_config ( ) ,
466
466
seal_pre_commit_phase1_output,
467
467
cache_path,
468
468
out_path,
@@ -556,7 +556,7 @@ fn seal_commit_phase1_inner<Tree: 'static + MerkleTreeTrait>(
556
556
filecoin_proofs_v1:: validate_cache_for_commit :: < _ , _ , Tree > ( & cache_path, & replica_path) ?;
557
557
558
558
let output = filecoin_proofs_v1:: seal_commit_phase1 :: < _ , Tree > (
559
- config,
559
+ & config,
560
560
cache_path,
561
561
replica_path,
562
562
prover_id,
@@ -643,7 +643,7 @@ fn seal_commit_phase2_inner<Tree: 'static + MerkleTreeTrait>(
643
643
ticket,
644
644
} ;
645
645
646
- let output = filecoin_proofs_v1:: seal_commit_phase2 :: < Tree > ( config, co, prover_id, sector_id) ?;
646
+ let output = filecoin_proofs_v1:: seal_commit_phase2 :: < Tree > ( & config, co, prover_id, sector_id) ?;
647
647
648
648
Ok ( SealCommitPhase2Output {
649
649
proof : output. proof ,
@@ -708,7 +708,7 @@ pub fn get_seal_inputs_inner<Tree: 'static + MerkleTreeTrait>(
708
708
let config = registered_proof. as_v1_config ( ) ;
709
709
710
710
filecoin_proofs_v1:: get_seal_inputs :: < Tree > (
711
- config, comm_r, comm_d, prover_id, sector_id, ticket, seed,
711
+ & config, comm_r, comm_d, prover_id, sector_id, ticket, seed,
712
712
)
713
713
}
714
714
@@ -775,7 +775,7 @@ pub fn aggregate_seal_commit_proofs_inner<Tree: 'static + MerkleTreeTrait>(
775
775
. collect ( ) ;
776
776
777
777
filecoin_proofs_v1:: aggregate_seal_commit_proofs :: < Tree > (
778
- config,
778
+ & config,
779
779
comm_rs,
780
780
seeds,
781
781
& outputs,
@@ -845,7 +845,7 @@ pub fn verify_aggregate_seal_commit_proofs_inner<Tree: 'static + MerkleTreeTrait
845
845
let config = registered_proof. as_v1_config ( ) ;
846
846
847
847
filecoin_proofs_v1:: verify_aggregate_seal_commit_proofs :: < Tree > (
848
- config,
848
+ & config,
849
849
aggregate_proof_bytes,
850
850
comm_rs,
851
851
seeds,
@@ -882,34 +882,36 @@ pub fn fauxrep<R: AsRef<Path>, S: AsRef<Path>>(
882
882
// Note also that not all of these sector sizes are production, so some could be pruned.
883
883
match sector_size {
884
884
SECTOR_SIZE_2_KIB => {
885
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape2KiB > ( config, cache_path, replica_path)
885
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape2KiB > ( & config, cache_path, replica_path)
886
886
}
887
887
SECTOR_SIZE_4_KIB => {
888
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape4KiB > ( config, cache_path, replica_path)
888
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape4KiB > ( & config, cache_path, replica_path)
889
889
}
890
890
SECTOR_SIZE_16_KIB => {
891
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape16KiB > ( config, cache_path, replica_path)
891
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape16KiB > ( & config, cache_path, replica_path)
892
892
}
893
893
SECTOR_SIZE_32_KIB => {
894
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape32KiB > ( config, cache_path, replica_path)
894
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape32KiB > ( & config, cache_path, replica_path)
895
895
}
896
896
SECTOR_SIZE_8_MIB => {
897
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape8MiB > ( config, cache_path, replica_path)
897
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape8MiB > ( & config, cache_path, replica_path)
898
898
}
899
899
SECTOR_SIZE_16_MIB => {
900
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape16MiB > ( config, cache_path, replica_path)
901
- }
902
- SECTOR_SIZE_512_MIB => {
903
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape512MiB > ( config, cache_path, replica_path)
900
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape16MiB > ( & config, cache_path, replica_path)
904
901
}
902
+ SECTOR_SIZE_512_MIB => filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape512MiB > (
903
+ & config,
904
+ cache_path,
905
+ replica_path,
906
+ ) ,
905
907
SECTOR_SIZE_1_GIB => {
906
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape1GiB > ( config, cache_path, replica_path)
908
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape1GiB > ( & config, cache_path, replica_path)
907
909
}
908
910
SECTOR_SIZE_32_GIB => {
909
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape32GiB > ( config, cache_path, replica_path)
911
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape32GiB > ( & config, cache_path, replica_path)
910
912
}
911
913
SECTOR_SIZE_64_GIB => {
912
- filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape64GiB > ( config, cache_path, replica_path)
914
+ filecoin_proofs_v1:: fauxrep :: < _ , _ , SectorShape64GiB > ( & config, cache_path, replica_path)
913
915
}
914
916
_ => panic ! ( "unsupported sector size: {}" , sector_size) ,
915
917
}
@@ -1003,7 +1005,7 @@ pub fn verify_seal(
1003
1005
with_shape ! (
1004
1006
u64 :: from( registered_proof. sector_size( ) ) ,
1005
1007
verify_seal,
1006
- config,
1008
+ & config,
1007
1009
comm_r_in,
1008
1010
comm_d_in,
1009
1011
prover_id,
@@ -1044,7 +1046,7 @@ pub fn verify_batch_seal(
1044
1046
with_shape ! (
1045
1047
u64 :: from( registered_proof. sector_size( ) ) ,
1046
1048
verify_batch_seal,
1047
- config,
1049
+ & config,
1048
1050
comm_r_ins,
1049
1051
comm_d_ins,
1050
1052
prover_ids,
@@ -1122,7 +1124,7 @@ fn get_unsealed_range_inner<Tree: 'static + MerkleTreeTrait>(
1122
1124
let config = registered_proof. as_v1_config ( ) ;
1123
1125
1124
1126
filecoin_proofs_v1:: get_unsealed_range :: < _ , Tree > (
1125
- config,
1127
+ & config,
1126
1128
cache_path,
1127
1129
sealed_path,
1128
1130
output_path,
@@ -1179,7 +1181,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1179
1181
// Note also that not all of these sector sizes are production, so some could be pruned.
1180
1182
match sector_size {
1181
1183
SECTOR_SIZE_2_KIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape2KiB > (
1182
- config,
1184
+ & config,
1183
1185
cache_path,
1184
1186
sealed_path. into ( ) ,
1185
1187
unsealed_output,
@@ -1191,7 +1193,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1191
1193
num_bytes,
1192
1194
) ,
1193
1195
SECTOR_SIZE_4_KIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape4KiB > (
1194
- config,
1196
+ & config,
1195
1197
cache_path,
1196
1198
sealed_path. into ( ) ,
1197
1199
unsealed_output,
@@ -1203,7 +1205,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1203
1205
num_bytes,
1204
1206
) ,
1205
1207
SECTOR_SIZE_16_KIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape16KiB > (
1206
- config,
1208
+ & config,
1207
1209
cache_path,
1208
1210
sealed_path. into ( ) ,
1209
1211
unsealed_output,
@@ -1215,7 +1217,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1215
1217
num_bytes,
1216
1218
) ,
1217
1219
SECTOR_SIZE_32_KIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape32KiB > (
1218
- config,
1220
+ & config,
1219
1221
cache_path,
1220
1222
sealed_path. into ( ) ,
1221
1223
unsealed_output,
@@ -1227,7 +1229,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1227
1229
num_bytes,
1228
1230
) ,
1229
1231
SECTOR_SIZE_8_MIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape8MiB > (
1230
- config,
1232
+ & config,
1231
1233
cache_path,
1232
1234
sealed_path. into ( ) ,
1233
1235
unsealed_output,
@@ -1239,7 +1241,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1239
1241
num_bytes,
1240
1242
) ,
1241
1243
SECTOR_SIZE_16_MIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape16MiB > (
1242
- config,
1244
+ & config,
1243
1245
cache_path,
1244
1246
sealed_path. into ( ) ,
1245
1247
unsealed_output,
@@ -1251,7 +1253,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1251
1253
num_bytes,
1252
1254
) ,
1253
1255
SECTOR_SIZE_512_MIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape512MiB > (
1254
- config,
1256
+ & config,
1255
1257
cache_path,
1256
1258
sealed_path. into ( ) ,
1257
1259
unsealed_output,
@@ -1263,7 +1265,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1263
1265
num_bytes,
1264
1266
) ,
1265
1267
SECTOR_SIZE_1_GIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape1GiB > (
1266
- config,
1268
+ & config,
1267
1269
cache_path,
1268
1270
sealed_path. into ( ) ,
1269
1271
unsealed_output,
@@ -1275,7 +1277,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1275
1277
num_bytes,
1276
1278
) ,
1277
1279
SECTOR_SIZE_32_GIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape32GiB > (
1278
- config,
1280
+ & config,
1279
1281
cache_path,
1280
1282
sealed_path. into ( ) ,
1281
1283
unsealed_output,
@@ -1287,7 +1289,7 @@ pub fn get_unsealed_range_mapped<T: Into<PathBuf> + AsRef<Path>, W: Write>(
1287
1289
num_bytes,
1288
1290
) ,
1289
1291
SECTOR_SIZE_64_GIB => filecoin_proofs_v1:: unseal_range_mapped :: < _ , _ , SectorShape64GiB > (
1290
- config,
1292
+ & config,
1291
1293
cache_path,
1292
1294
sealed_path. into ( ) ,
1293
1295
unsealed_output,
@@ -1346,7 +1348,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1346
1348
// Note also that not all of these sector sizes are production, so some could be pruned.
1347
1349
match sector_size {
1348
1350
SECTOR_SIZE_2_KIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape2KiB > (
1349
- config,
1351
+ & config,
1350
1352
cache_path,
1351
1353
sealed_sector,
1352
1354
unsealed_output,
@@ -1358,7 +1360,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1358
1360
num_bytes,
1359
1361
) ,
1360
1362
SECTOR_SIZE_4_KIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape4KiB > (
1361
- config,
1363
+ & config,
1362
1364
cache_path,
1363
1365
sealed_sector,
1364
1366
unsealed_output,
@@ -1370,7 +1372,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1370
1372
num_bytes,
1371
1373
) ,
1372
1374
SECTOR_SIZE_16_KIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape16KiB > (
1373
- config,
1375
+ & config,
1374
1376
cache_path,
1375
1377
sealed_sector,
1376
1378
unsealed_output,
@@ -1382,7 +1384,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1382
1384
num_bytes,
1383
1385
) ,
1384
1386
SECTOR_SIZE_32_KIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape32KiB > (
1385
- config,
1387
+ & config,
1386
1388
cache_path,
1387
1389
sealed_sector,
1388
1390
unsealed_output,
@@ -1394,7 +1396,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1394
1396
num_bytes,
1395
1397
) ,
1396
1398
SECTOR_SIZE_8_MIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape8MiB > (
1397
- config,
1399
+ & config,
1398
1400
cache_path,
1399
1401
sealed_sector,
1400
1402
unsealed_output,
@@ -1406,7 +1408,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1406
1408
num_bytes,
1407
1409
) ,
1408
1410
SECTOR_SIZE_16_MIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape16MiB > (
1409
- config,
1411
+ & config,
1410
1412
cache_path,
1411
1413
sealed_sector,
1412
1414
unsealed_output,
@@ -1418,7 +1420,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1418
1420
num_bytes,
1419
1421
) ,
1420
1422
SECTOR_SIZE_512_MIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape512MiB > (
1421
- config,
1423
+ & config,
1422
1424
cache_path,
1423
1425
sealed_sector,
1424
1426
unsealed_output,
@@ -1430,7 +1432,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1430
1432
num_bytes,
1431
1433
) ,
1432
1434
SECTOR_SIZE_1_GIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape1GiB > (
1433
- config,
1435
+ & config,
1434
1436
cache_path,
1435
1437
sealed_sector,
1436
1438
unsealed_output,
@@ -1442,7 +1444,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1442
1444
num_bytes,
1443
1445
) ,
1444
1446
SECTOR_SIZE_32_GIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape32GiB > (
1445
- config,
1447
+ & config,
1446
1448
cache_path,
1447
1449
sealed_sector,
1448
1450
unsealed_output,
@@ -1454,7 +1456,7 @@ pub fn unseal_range<T: Into<PathBuf> + AsRef<Path>, R: Read, W: Write>(
1454
1456
num_bytes,
1455
1457
) ,
1456
1458
SECTOR_SIZE_64_GIB => filecoin_proofs_v1:: unseal_range :: < _ , _ , _ , SectorShape64GiB > (
1457
- config,
1459
+ & config,
1458
1460
cache_path,
1459
1461
sealed_sector,
1460
1462
unsealed_output,
0 commit comments