miden_node_store/
lib.rs

1use std::time::Duration;
2
3mod blocks;
4mod db;
5mod errors;
6mod genesis;
7mod server;
8mod state;
9
10pub use genesis::GenesisState;
11pub use server::{DataDirectory, Store};
12
13// CONSTANTS
14// =================================================================================================
15const COMPONENT: &str = "miden-store";
16
17/// Number of sql statements that each connection will cache.
18const SQL_STATEMENT_CACHE_CAPACITY: usize = 32;
19
20/// How often to run the database maintenance routine.
21const DATABASE_MAINTENANCE_INTERVAL: Duration = Duration::from_secs(24 * 60 * 60);