zebra_consensus::transaction::check

Function consensus_branch_id

source
pub fn consensus_branch_id(
    tx: &Transaction,
    height: Height,
    network: &Network,
) -> Result<(), TransactionError>
Expand description

Checks the nConsensusBranchId field.

§Consensus

§7.1.2 Transaction Consensus Rules

[NU5 onward] If effectiveVersion ≥ 5, the nConsensusBranchId field MUST match the consensus branch ID used for SIGHASH transaction hashes, as specified in ZIP-244.

§Notes