Skip to main content

get_block_script_flags

Function get_block_script_flags 

Source
pub fn get_block_script_flags(
    block_hash: &[u8; 32],
    tx: &Transaction,
    has_witness: bool,
    height: u64,
    network: Network,
) -> u32
Expand description

Orange Paper §5.2.6: exception table wins when defined; otherwise per-tx CalculateScriptFlags.

connect_block uses get_block_script_verify_flags_core for the block-level mask; this function is the Orange Paper §5.2.6 piecewise spec.