Skip to main content

taproot_active_at_height

Function taproot_active_at_height 

Source
pub fn taproot_active_at_height(
    block_height: Option<u64>,
    network: Network,
) -> bool
Expand description

Whether Taproot script verification applies at block_height.

When height is unknown (None), returns true so P2TR-shaped scriptPubKeys still run Taproot verification (callers that know height should pass Some(h)).