mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-10 04:44:53 +00:00
12 lines
446 B
Rust
12 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;
|