pub enum ForkId {
Bip30,
Bip16,
Bip34,
Bip66,
Bip65,
Bip112,
Bip147,
SegWit,
Taproot,
Ctv,
Csfs,
Bip54,
}Expand description
Stable identifier for each consensus-affecting fork (BIP or soft-fork bundle).
Used to query “is fork X active at height H?” via a unified activation table without hardcoding names in every validation function.
Variants§
Bip30
BIP30: duplicate coinbase prevention (deactivation fork: active when height <= deactivation_height).
Bip16
BIP16: P2SH.
Bip34
BIP34: block height in coinbase.
Bip66
BIP66: strict DER signatures.
Bip65
BIP65: OP_CHECKLOCKTIMEVERIFY.
Bip112
BIP112/BIP113: OP_CHECKSEQUENCEVERIFY (CSV). Activates at 419328 mainnet — before BIP147.
Bip147
BIP147: SCRIPT_VERIFY_NULLDUMMY (SegWit deployment; mainnet 481824).
SegWit
BIP141: SegWit.
Taproot
BIP341: Taproot.
Ctv
BIP119: OP_CTV (feature-gated).
Csfs
BIP348: OP_CSFS (feature-gated).
Bip54
BIP54: consensus cleanup (version-bits or override).
Trait Implementations§
impl Copy for ForkId
impl Eq for ForkId
impl StructuralPartialEq for ForkId
Auto Trait Implementations§
impl Freeze for ForkId
impl RefUnwindSafe for ForkId
impl Send for ForkId
impl Sync for ForkId
impl Unpin for ForkId
impl UnsafeUnpin for ForkId
impl UnwindSafe for ForkId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more