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