massa_db_exports/
settings.rs

1use std::path::PathBuf;
2
3/// Config structure for a `MassaDBRaw`
4#[derive(Debug, Clone)]
5pub struct MassaDBConfig {
6    /// The path to the database, used in the wrapped RocksDB instance
7    pub path: PathBuf,
8    /// Change history to keep (indexed by ChangeID)
9    pub max_history_length: usize,
10    /// max_new_elements for bootstrap in versioning stream batch
11    pub max_versioning_elements_size: usize,
12    /// max_new_elements for bootstrap in final_state stream batch
13    pub max_final_state_elements_size: usize,
14    /// Thread count for slot serialization
15    pub thread_count: u8,
16    /// Maximum number of ledger backups to keep
17    pub max_ledger_backups: u64,
18    /// Enable metrics
19    pub enable_metrics: bool,
20}