mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-03-07 09:14:29 +00:00
* add `constants/` * ci: add `A-constants` labeler * add modules, move `cuprate_helper::constants` * add `genesis.rs` * `rpc.rs` docs * remove todos * `CRYPTONOTE_MAX_BLOCK_HEIGHT` * add genesis data for all networks * features * fix feature cfgs * test fixes * add to architecture book * fix comment * remove `genesis` add other constants * fixes * revert * fix
11 lines
446 B
Rust
11 lines
446 B
Rust
//! Block related.
|
|
|
|
use crate::macros::monero_definition_link;
|
|
|
|
/// The maximum block height possible.
|
|
#[doc = monero_definition_link!(a1dc85c5373a30f14aaf7dcfdd95f5a7375d3623, "/src/cryptonote_config.h", 40)]
|
|
pub const MAX_BLOCK_HEIGHT: u64 = 500_000_000;
|
|
|
|
/// [`MAX_BLOCK_HEIGHT`] as a [`usize`].
|
|
#[expect(clippy::cast_possible_truncation, reason = "will not be truncated")]
|
|
pub const MAX_BLOCK_HEIGHT_USIZE: usize = MAX_BLOCK_HEIGHT as usize;
|