cuprate_blockchain/constants.rs
1//! General constants used throughout `cuprate-blockchain`.
2
3//---------------------------------------------------------------------------------------------------- Import
4
5//---------------------------------------------------------------------------------------------------- Version
6/// Current major version of the database.
7///
8/// Returned by [`crate::ops::property::db_version`].
9///
10/// This is incremented by 1 when `cuprate_blockchain`'s
11/// structure/schema/tables change.
12///
13/// This is akin to `VERSION` in `monerod`:
14/// <https://github.com/monero-project/monero/blob/c8214782fb2a769c57382a999eaf099691c836e7/src/blockchain_db/lmdb/db_lmdb.cpp#L57>
15pub const DATABASE_VERSION: u64 = 0;
16
17//---------------------------------------------------------------------------------------------------- Tests
18#[cfg(test)]
19mod test {}