Expand description
Bitcoin consensus constants from Orange Paper
Constants§
- BIP16_
P2SH_ ACTIVATION_ MAINNET - BIP16: P2SH (Pay-to-Script-Hash) - Mainnet activation height
- BIP16_
P2SH_ ACTIVATION_ REGTEST - BIP16: P2SH (Pay-to-Script-Hash) - Regtest activation height
- BIP16_
P2SH_ ACTIVATION_ TESTNET - BIP16: P2SH (Pay-to-Script-Hash) - Testnet activation height
- BIP30_
DEACTIVATION_ MAINNET - BIP30: Duplicate Coinbase Prevention - Mainnet deactivation height
- BIP30_
DEACTIVATION_ REGTEST - BIP30: Duplicate Coinbase Prevention - Regtest deactivation height
- BIP30_
DEACTIVATION_ TESTNET - BIP30: Duplicate Coinbase Prevention - Testnet deactivation height
- BIP34_
ACTIVATION_ MAINNET - BIP34: Block Height in Coinbase - Mainnet activation height
- BIP34_
ACTIVATION_ REGTEST - BIP34: Block Height in Coinbase - Regtest activation height
- BIP34_
ACTIVATION_ TESTNET - BIP34: Block Height in Coinbase - Testnet activation height
- BIP54_
ACTIVATION_ MAINNET - BIP54: Consensus Cleanup - Mainnet activation height
- BIP54_
ACTIVATION_ REGTEST - BIP54: Consensus Cleanup - Regtest activation height
- BIP54_
ACTIVATION_ TESTNET - BIP54: Consensus Cleanup - Testnet activation height
- BIP54_
MAX_ SIGOPS_ PER_ TX - BIP54: Maximum sigop count per transaction (Consensus Cleanup). Transactions with total sigop count > this are invalid after BIP54 activation.
- BIP65_
ACTIVATION_ MAINNET - BIP65: OP_CHECKLOCKTIMEVERIFY (CLTV) - Mainnet activation height
- BIP65_
ACTIVATION_ TESTNET - BIP65: OP_CHECKLOCKTIMEVERIFY (CLTV) - Testnet activation height
- BIP66_
ACTIVATION_ MAINNET - BIP66: Strict DER Signatures - Mainnet activation height
- BIP66_
ACTIVATION_ REGTEST - BIP66: Strict DER Signatures - Regtest activation height
- BIP66_
ACTIVATION_ TESTNET - BIP66: Strict DER Signatures - Testnet activation height
- BIP112_
CSV_ ACTIVATION_ MAINNET - BIP112/BIP113: CHECKSEQUENCEVERIFY (CSV) - Mainnet activation height
- BIP112_
CSV_ ACTIVATION_ REGTEST - BIP112/BIP113: CSV - Regtest (active from genesis for typical regtest chains)
- BIP112_
CSV_ ACTIVATION_ TESTNET - BIP112/BIP113: CSV - Testnet activation height (Bitcoin Core testnet3)
- BIP147_
ACTIVATION_ MAINNET - BIP147: NULLDUMMY Enforcement - Mainnet activation height
- BIP147_
ACTIVATION_ TESTNET - BIP147: NULLDUMMY Enforcement - Testnet activation height
- C
- satoshis per BTC (Orange Paper C)
- COINBASE_
MATURITY - Coinbase maturity requirement: 100 blocks
- CSFS_
ACTIVATION_ MAINNET - CSFS (BIP348) - Mainnet activation height
- CSFS_
ACTIVATION_ REGTEST - CSFS (BIP348) - Regtest activation height
- CSFS_
ACTIVATION_ TESTNET - CSFS (BIP348) - Testnet activation height
- CTV_
ACTIVATION_ MAINNET - CTV (BIP119) - Mainnet activation height
- CTV_
ACTIVATION_ REGTEST - CTV (BIP119) - Regtest activation height
- CTV_
ACTIVATION_ TESTNET - CTV (BIP119) - Testnet activation height
- DIFFICULTY_
ADJUSTMENT_ INTERVAL - Difficulty adjustment interval: 2016 blocks
- GENESIS_
BLOCK_ HASH - Genesis block hash (mainnet)
- GENESIS_
BLOCK_ HASH_ INTERNAL - Genesis block hash in internal / wire byte order.
- GENESIS_
BLOCK_ MERKLE_ ROOT - Genesis block merkle root
- GENESIS_
BLOCK_ NONCE - Genesis block nonce
- GENESIS_
BLOCK_ TIMESTAMP - Genesis block timestamp (Unix timestamp)
- H
- halving interval (Orange Paper H)
- HALVING_
INTERVAL - Halving interval: 210,000 blocks
- INITIAL_
SUBSIDY - Initial block subsidy: 50 BTC
- LOCKTIME_
THRESHOLD - Lock time threshold: transactions with lock time < this are block height
- L_
ELEMENT - maximum element size (Orange Paper L_ELEMENT)
- L_OPS
- maximum operations per script (Orange Paper L_OPS)
- L_
SCRIPT - maximum script length (Orange Paper L_SCRIPT)
- L_STACK
- maximum stack size (Orange Paper L_STACK)
- MAX_
BLOCK_ SERIALIZED_ SIZE - Maximum block serialized size in bytes (network rule) This is the maximum size of a block when serialized without witness data
- MAX_
BLOCK_ SIGOPS_ COST - Maximum block sigop cost (network rule)
- MAX_
BLOCK_ SIZE Deprecated - Maximum block size (deprecated - use MAX_BLOCK_WEIGHT for SegWit blocks) Kept for backward compatibility
- MAX_
BLOCK_ WEIGHT - Maximum block weight in weight units (network rule, BIP141) Weight = (stripped_size × 4) + witness_size This is the primary limit for SegWit blocks
- MAX_
FUTURE_ BLOCK_ TIME - Maximum future block time tolerance: 2 hours (7200 seconds)
- MAX_
INPUTS - Maximum number of inputs per transaction
- MAX_
MONEY - Maximum money supply: 21,000,000 BTC in satoshis
- MAX_
OUTPUTS - Maximum number of outputs per transaction
- MAX_
SCRIPT_ ELEMENT_ SIZE - Maximum script element size (BIP141: witness elements can be up to 520 bytes)
- MAX_
SCRIPT_ OPS - Maximum number of operations in script
- MAX_
SCRIPT_ SIZE - Maximum script length
- MAX_
STACK_ SIZE - Maximum stack size during script execution
- MAX_
TARGET - Maximum target (minimum difficulty)
- MAX_
TRANSACTIONS_ PER_ BLOCK - Upper bound on the number of transactions in any consensus-valid block.
- MAX_
TX_ SIZE - Maximum transaction size: 1MB
- MIN_
RELAY_ FEE - Minimum relay fee for RBF replacement (BIP125)
- MIN_
TARGET - Minimum target (maximum difficulty) - Bitcoin’s genesis target
- M_MAX
- maximum money supply (Orange Paper M_MAX)
- R
- coinbase maturity (Orange Paper R)
- SATOSHIS_
PER_ BTC - Satoshis per BTC
- SEGWIT_
ACTIVATION_ MAINNET - SegWit (BIP141) - Mainnet activation height
- SEGWIT_
ACTIVATION_ TESTNET - SegWit (BIP141) - Testnet activation height (Bitcoin Core testnet3
consensus.SegwitHeight) - SEGWIT_
P2WPKH_ LENGTH - SegWit witness program lengths (BIP141)
- SEGWIT_
P2WSH_ LENGTH - SEQUENCE_
FINAL - Sequence number for final transaction
- SEQUENCE_
RBF - Sequence number for RBF
- S_MAX
- maximum sigops per block (Orange Paper S_MAX)
- TAPROOT_
ACTIVATION_ MAINNET - Taproot (BIP341) - Mainnet activation height
- TAPROOT_
ACTIVATION_ TESTNET - Taproot (BIP341) - Testnet activation height (Bitcoin Core testnet3)
- TAPROOT_
PROGRAM_ LENGTH - Taproot program hash length (BIP341)
- TAPROOT_
SCRIPT_ LENGTH - Taproot script length (BIP341)
- TARGET_
TIME_ PER_ BLOCK - Target time per block: 10 minutes
- WITNESS_
COMMITMENT_ HASH_ LENGTH - Witness commitment hash length (BIP141)
- WITNESS_
COMMITMENT_ SCRIPT_ LENGTH - Witness commitment script length (BIP141)
- W_MAX
- maximum block weight (Orange Paper W_MAX)