Expand description
Miscellaneous constraints imposed by Bitcoin. These constraints can be either Consensus or Policy (standardness) rules, for either Segwitv0 or Legacy scripts.
Constantsยง
- HEIGHT_
TIME_ THRESHOLD - The Threshold for deciding whether
nLockTime
is interpreted as time or height. - MAX_
BLOCK_ WEIGHT - The maximum allowed weight for a block, see BIP 141 (network rule)
- MAX_
OPS_ PER_ SCRIPT - Maximum operations per script
- MAX_
PUBKEYS_ PER_ MULTISIG - Maximum pubkeys as arguments to CHECKMULTISIG
- MAX_
SCRIPTSIG_ SIZE - Maximum script sig size allowed by standardness rules
- MAX_
SCRIPT_ ELEMENT_ SIZE - Maximum script element size allowed by consensus rules
- MAX_
SCRIPT_ SIZE - Maximum script size allowed by consensus rules
- MAX_
STACK_ SIZE - Maximum items during stack execution
- MAX_
STANDARD_ P2WSH_ SCRIPT_ SIZE - Maximum script size allowed by standardness rules
- MAX_
STANDARD_ P2WSH_ STACK_ ITEMS - Maximum p2wsh initial stack items
- SEQUENCE_
LOCKTIME_ DISABLE_ FLAG - Disable flag for sequence locktime
- SEQUENCE_
LOCKTIME_ TYPE_ FLAG - Bit flag for deciding whether sequence number is interpreted as height or time