mithril_common/digesters/
mod.rspub mod cache;
mod cardano_immutable_digester;
mod dumb_immutable_digester;
mod immutable_digester;
mod immutable_file;
mod immutable_file_observer;
mod ledger_file;
pub use cardano_immutable_digester::CardanoImmutableDigester;
pub use immutable_digester::{
ComputedImmutablesDigests, ImmutableDigester, ImmutableDigesterError,
};
pub use immutable_file::{ImmutableFile, ImmutableFileCreationError, ImmutableFileListingError};
pub use immutable_file_observer::{
DumbImmutableFileObserver, ImmutableFileObserver, ImmutableFileObserverError,
ImmutableFileSystemObserver,
};
pub use ledger_file::{LedgerFile, LedgerFileListingError};
pub use dumb_immutable_digester::DumbImmutableDigester;
pub const IMMUTABLE_DIR: &str = "immutable";
pub const LEDGER_DIR: &str = "ledger";
pub const VOLATILE_DIR: &str = "volatile";
pub fn immutable_trio_names(
immutable_file_number: crate::entities::ImmutableFileNumber,
) -> Vec<String> {
vec![
format!("{:05}.chunk", immutable_file_number),
format!("{:05}.primary", immutable_file_number),
format!("{:05}.secondary", immutable_file_number),
]
}
cfg_test_tools! {
mod dummy_cardano_db;
pub use dummy_cardano_db::{DummyCardanoDb, DummyCardanoDbBuilder};
}