fn validate_expiry_height_max(
    expiry_height: Option<Height>,
    is_coinbase: bool,
    block_height: &Height,
    transaction: &Transaction,
) -> Result<(), TransactionError> {
    if let Some(expiry_height) = expiry_height {
        if expiry_height > Height::MAX_EXPIRY_HEIGHT {
            return Err(TransactionError::MaximumExpiryHeight {
                expiry_height,
                is_coinbase,
                block_height: *block_height,
                transaction_hash: transaction.hash(),
            })?;
        }
    }

    Ok(())
}
/// Validate the consensus rule: nExpiryHeight MUST be less than or equal to 499999999.
///
/// The remaining arguments are not used for validation,
/// they are only used to create errors.
Validate the consensus rule: nExpiryHeight MUST be less than or equal to 499999999.
The remaining arguments are not used for validation,
they are only used to create errors.
Validate the consensus rule : nExpiryHeight MUST be less than or equal to 499999999 . The remaining arguments are not used for validation they are only used to create errors .
fn validate_expiry_height_max(
    expiry_height: Option<Height>,
    is_coinbase: bool,
    block_height: &Height,
    transaction: &Transaction,
) -> Result<(), TransactionError> {
    if let Some(expiry_height) = expiry_height {
        if expiry_height > Height::MAX_EXPIRY_HEIGHT {
            return Err(TransactionError::MaximumExpiryHeight {
                expiry_height,
                is_coinbase,
                block_height: *block_height,
                transaction_hash: transaction.hash(),
            })?;
        }
    }
    Ok(())
}
fn validate_expiry_height_max ( expiry_height : Option < Height > , is_coinbase : bool , block_height : & Height , transaction : & Transaction , ) -> Result < ( ) , TransactionError > { if let Some ( expiry_height ) = expiry_height { if expiry_height > Height :: MAX_EXPIRY_HEIGHT { return Err ( TransactionError :: MaximumExpiryHeight { expiry_height , is_coinbase , block_height : * block_height , transaction_hash : transaction . hash ( ) , } ) ? ; } } Ok ( ( ) ) }
Validate the consensus rule: nExpiryHeight MUST be less than or equal to 499999999.
Validate the consensus rule : nExpiryHeight MUST be less than or equal to 499999999 .
expiry_height
Option<Height>
is_coinbase
bool
block_height
&Height
transaction
&Transaction