Skip to main content

transaction_to_fake_v5

Function transaction_to_fake_v5 

Source
pub fn transaction_to_fake_v5(
    trans: &Transaction,
    network: &Network,
    height: Height,
) -> Transaction
Expand description

Convert trans into a fake v5 transaction.

Takes the transparent inputs/outputs from trans and builds a new V5 transaction at the given height. Used to test V5 sighash/serialization with real transparent data from the test vector blocks.