cuprate_consensus_rules::transactions

Function check_transaction_contextual

Source
pub fn check_transaction_contextual(
    tx: &Transaction,
    tx_ring_members_info: &TxRingMembersInfo,
    current_chain_height: usize,
    current_time_lock_timestamp: u64,
    hf: HardFork,
) -> Result<(), TransactionError>
Expand description

Checks the transaction is contextually valid.

To fully verify a transaction this must be accompanied by check_transaction_semantic.

This function also does not check for duplicate key-images: https://monero-book.cuprate.org/consensus_rules/transactions/inputs.html#unique-key-image.

current_time_lock_timestamp must be: https://monero-book.cuprate.org/consensus_rules/transactions/unlock_time.html#getting-the-current-time.