cuprate_consensus_rules::hard_forks

Function check_block_version_vote

Source
pub fn check_block_version_vote(
    hf: &HardFork,
    version: &HardFork,
    vote: &HardFork,
) -> Result<(), HardForkError>
Expand description

Checks a blocks version and vote, assuming that hf is the current hard-fork.

ref: https://monero-book.cuprate.org/consensus_rules/hardforks.html#blocks-version-and-vote