miden_node_store/lib.rs
1use std::time::Duration;
2
3mod accounts;
4mod blocks;
5mod db;
6mod errors;
7pub mod genesis;
8mod server;
9pub mod state;
10
11pub use accounts::{
12 AccountTreeStorage,
13 AccountTreeWithHistory,
14 HistoricalError,
15 InMemoryAccountTree,
16};
17pub use genesis::GenesisState;
18pub use server::{DataDirectory, Store};
19
20// CONSTANTS
21// =================================================================================================
22const COMPONENT: &str = "miden-store";
23
24/// How often to run the database maintenance routine.
25const DATABASE_MAINTENANCE_INTERVAL: Duration = Duration::from_secs(24 * 60 * 60);