Skip to main content

check_bip147

Function check_bip147 

Source
pub fn check_bip147(
    script_sig: &[u8],
    script_pubkey: &[u8],
    height: u64,
    activation: &impl IsForkActive,
) -> Result<bool, ConsensusError>
Expand description

BIP147: NULLDUMMY Enforcement

Enforces that OP_CHECKMULTISIG dummy elements are empty. Mathematical specification: Orange Paper Section 5.4.5

BIP147Check: 𝕊 × 𝕊 × ℕ → {valid, invalid}

Activation Heights:

  • Mainnet: Block 481,824 (SegWit activation)
  • Testnet: Block 834,624
  • Regtest: Block 0 (always active)