Expand description
BIP9-style version bits activation.
Computes soft-fork activation height from block header version bits so the node can enforce a fork when miners signal (e.g. BIP54) without a fixed activation height.
Structs§
- Bip9
Deployment - BIP9 deployment parameters (bit index and time window).
Constants§
- ACTIVATION_
THRESHOLD - BIP9 activation threshold (95% of LOCK_IN_PERIOD).
- LOCK_
IN_ PERIOD - BIP9 lock-in period (2016 blocks).
Functions§
- activation_
height_ from_ headers - Computes the activation height for a BIP9 deployment from recent block headers.
- bip54_
deployment_ mainnet - Returns the BIP54 deployment for mainnet when using version-bits activation.
- merge_
bip54_ activation_ candidate - Combine a running BIP54/version-bits activation height with a new candidate from
activation_height_from_headers. Keeps the minimum (earliest) height.