zebra_consensus::transaction::check

Function validate_expiry_height_mined

source
fn validate_expiry_height_mined(
    expiry_height: Option<Height>,
    block_height: &Height,
    transaction: &Transaction,
) -> Result<(), TransactionError>
Expand description

Checks that a transaction does not exceed its expiry height.

The transaction parameter is only used to give details about the error when the check fails.