Skip to content

Commit 1e438ec

Browse files
committed
docs: add documentation about recursive search of immutables directory
1 parent 54ebb50 commit 1e438ec

File tree

2 files changed

+4
-2
lines changed
  • internal/cardano-node/mithril-cardano-node-internal-database/src/entities
  • mithril-client/src/cardano_database_client

2 files changed

+4
-2
lines changed

internal/cardano-node/mithril-cardano-node-internal-database/src/entities/immutable_file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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> {

mithril-client/src/cardano_database_client/proving.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)