@@ -536,11 +536,11 @@ fn seal_pre_commit_phase1_inner<Tree: 'static + MerkleTreeTrait>(
536
536
///
537
537
/// # Arguments
538
538
/// * `registered_proof` - Selected seal operation.
539
- /// * `cache_path ` - Directory path to use for generation of Merkle tree on disk .
540
- /// * `output_dir ` - Directory where the TreeRLast(s) are stored.
539
+ /// * `output_dir ` - The directory where the label layers will be stored .
540
+ /// * `replica_id ` - The ReplicaID to use for the SDR
541
541
pub fn sdr < R > (
542
542
registered_proof : RegisteredSealProof ,
543
- cache_path : R ,
543
+ output_dir : R ,
544
544
replica_id : <filecoin_proofs_v1:: constants:: DefaultTreeHasher as Hasher >:: Domain ,
545
545
) -> Result < ( ) >
546
546
where
@@ -555,7 +555,7 @@ where
555
555
u64 :: from( registered_proof. sector_size( ) ) ,
556
556
sdr_inner,
557
557
registered_proof,
558
- cache_path . as_ref( ) ,
558
+ output_dir . as_ref( ) ,
559
559
replica_id,
560
560
) ?;
561
561
@@ -564,11 +564,11 @@ where
564
564
565
565
fn sdr_inner < Tree : ' static + MerkleTreeTrait > (
566
566
registered_proof : RegisteredSealProof ,
567
- cache_path : & Path ,
567
+ output_dir : & Path ,
568
568
replica_id : <Tree :: Hasher as Hasher >:: Domain ,
569
569
) -> Result < ( ) > {
570
570
let config = registered_proof. as_v1_config ( ) ;
571
- filecoin_proofs_v1:: sdr :: < _ , Tree > ( & config, cache_path , & replica_id) ?;
571
+ filecoin_proofs_v1:: sdr :: < _ , Tree > ( & config, output_dir , & replica_id) ?;
572
572
Ok ( ( ) )
573
573
}
574
574
@@ -692,7 +692,7 @@ fn generate_tree_r_last_inner<Tree: 'static + MerkleTreeTrait>(
692
692
/// # Arguments
693
693
/// * `registered_proof` - Selected seal operation.
694
694
/// * `input_dir` - Directory where the label layers are stored.
695
- /// * `output_dir` - Directory where the TreeRLast(s) are stored.
695
+ /// * `output_dir` - Directory where the TreeC is stored (may be split into several files) .
696
696
pub fn generate_tree_c < O , R > (
697
697
registered_proof : RegisteredSealProof ,
698
698
input_dir : R ,
@@ -923,7 +923,6 @@ fn seal_commit_phase2_inner<Tree: 'static + MerkleTreeTrait>(
923
923
/// # Arguments
924
924
///
925
925
/// * `phase1_output` - Struct returned from [`seal_commit_phase1`] containing Merkle tree proof.
926
- /// * `prover_id` - Unique ID of the storage provider.
927
926
/// * `sector_id` - ID of the sector, usually relative to the miner.
928
927
///
929
928
/// Returns [`SealCommitPhase2Output`] struct containing vector of zk-SNARK proofs.
0 commit comments