Skip to main content

append_witness_commitment

Function append_witness_commitment 

Source
pub fn append_witness_commitment(
    coinbase: &mut Transaction,
    txs: &mut [Transaction],
) -> Result<(), ConsensusError>
Expand description

BIP141: coinbase wtxid is 0, so appending the OP_RETURN does not change the witness root. Empty stacks when nested is None (legacy). Prefer append_witness_commitment_from_nested when mempool witnesses are known.