Add max_checkpoints getter

This commit is contained in:
Eric Tu 2024-09-06 12:14:28 -04:00
parent f3919df8f6
commit 0e9d4d635a
1 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,11 @@ impl<
&mut self.store
}
/// Returns the maximum number of checkpoints to retain before pruning.
pub fn max_checkpoints(&self) -> usize {
self.max_checkpoints
}
/// Returns the root address of the tree.
pub fn root_addr() -> Address {
Address::from_parts(Level::from(DEPTH), 0)