Skip to main content

check_bip34

Function check_bip34 

Source
pub fn check_bip34(
    block: &Block,
    height: u64,
    activation: &impl IsForkActive,
) -> Result<bool, ConsensusError>
Expand description

BIP34: Block Height in Coinbase

Starting at the mainnet height in BIP34_ACTIVATION_MAINNET (Bitcoin Core BIP34Height), coinbase scriptSig must contain the block height. Mathematical specification: Orange Paper Section 5.4.2

BIP34Check: ℬ × ℕ → {valid, invalid}

Activation Heights:

  • Mainnet: BIP34_ACTIVATION_MAINNET (227,931; Bitcoin Core chainparams)
  • Testnet: Block 211,111
  • Regtest: Block 0 (always active)