File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
internal/cardano-node/mithril-cardano-node-internal-database/src/entities
mithril-client-cli/src/commands/cardano_db
mithril-client/src/cardano_database_client Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ impl ImmutableFile {
133133 Ok ( hasher. finalize ( ) )
134134 }
135135
136- /// List all [`ImmutableFile`] in a given directory.
136+ /// List all [`ImmutableFile`] in a given directory by recursively searching a immutable directory .
137137 pub fn list_all_in_dir ( dir : & Path ) -> Result < Vec < ImmutableFile > , ImmutableFileListingError > {
138138 let immutable_dir = find_immutables_dir ( dir) . ok_or (
139139 ImmutableFileListingError :: MissingImmutableFolder ( dir. to_path_buf ( ) ) ,
@@ -169,7 +169,7 @@ impl ImmutableFile {
169169 }
170170 }
171171
172- /// Check if at least one immutable file exists in the given directory
172+ /// Check if at least one immutable file exists in the given directory by recursively searching a immutable directory
173173 pub fn at_least_one_immutable_files_exist_in_dir (
174174 dir : & Path ,
175175 ) -> Result < ( ) , ImmutableFileListingError > {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub struct CardanoDbVerifyCommand {
3131 /// Use the `list` command to get that information.
3232 digest : String ,
3333
34- /// Directory from where the immutable will be verified.
34+ /// Directory from where the immutable will be verified. It will recursively search for immutables directory.
3535 #[ clap( long) ]
3636 db_dir : Option < PathBuf > ,
3737
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ impl InternalArtifactProver {
4444 }
4545
4646 /// Compute the Merkle proof of membership for the given immutable file range.
47+ ///
48+ /// It will recursively search for immutables directory inside the provided `database_dir`.
4749 pub async fn compute_merkle_proof (
4850 & self ,
4951 certificate : & CertificateMessage ,
You can’t perform that action at this time.
0 commit comments