cuprate_consensus_rules::blocks

Function check_timestamp

Source
pub fn check_timestamp(
    block: &Block,
    median_timestamp: u64,
) -> Result<(), BlockError>
Expand description

Checks the blocks timestamp is in the valid range.

ref: https://monero-book.cuprate.org/consensus_rules/blocks.html#timestamp