zebra_consensus::transaction::check

Function tx_transparent_coinbase_spends_maturity

source
pub fn tx_transparent_coinbase_spends_maturity(
    network: &Network,
    tx: Arc<Transaction>,
    height: Height,
    block_new_outputs: Arc<HashMap<OutPoint, OrderedUtxo>>,
    spent_utxos: &HashMap<OutPoint, Utxo>,
) -> Result<(), TransactionError>
Expand description

Accepts a transaction, block height, block UTXOs, and the transaction’s spent UTXOs from the chain.

Returns Ok(()) if spent transparent coinbase outputs are valid for the block height, or a Err(TransactionError)