pub struct ForkActivationTable {
pub bip30_deactivation: u64,
pub bip16: u64,
pub bip34: u64,
pub bip66: u64,
pub bip65: u64,
pub bip112: u64,
pub bip147: u64,
pub segwit: u64,
pub taproot: u64,
pub ctv: u64,
pub csfs: u64,
pub bip54: u64,
}Expand description
Precomputed activation heights for all built-in forks.
Fixed-size storage: one field per fork (no HashMap). Built by the node from chain params, version-bits (e.g. BIP54), and config overrides. Consensus only reads.
Fields§
§bip30_deactivation: u64BIP30: active when height <= this (deactivation fork).
bip16: u64Activation heights (active when height >= value; u64::MAX = never active).
bip34: u64§bip66: u64§bip65: u64§bip112: u64§bip147: u64§segwit: u64§taproot: u64§ctv: u64§csfs: u64§bip54: u64Implementations§
Source§impl ForkActivationTable
impl ForkActivationTable
Sourcepub fn from_network(network: Network) -> Self
pub fn from_network(network: Network) -> Self
Build table from network and constants. BIP54 uses per-network constant (u64::MAX by default).
Sourcepub fn from_network_and_bip54_override(
network: Network,
bip54_activation_override: Option<u64>,
) -> Self
pub fn from_network_and_bip54_override( network: Network, bip54_activation_override: Option<u64>, ) -> Self
Build table from network and optional BIP54 activation override (e.g. from version bits).
Trait Implementations§
Source§impl Clone for ForkActivationTable
impl Clone for ForkActivationTable
Source§fn clone(&self) -> ForkActivationTable
fn clone(&self) -> ForkActivationTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForkActivationTable
impl Debug for ForkActivationTable
Source§impl IsForkActive for ForkActivationTable
impl IsForkActive for ForkActivationTable
Auto Trait Implementations§
impl Freeze for ForkActivationTable
impl RefUnwindSafe for ForkActivationTable
impl Send for ForkActivationTable
impl Sync for ForkActivationTable
impl Unpin for ForkActivationTable
impl UnsafeUnpin for ForkActivationTable
impl UnwindSafe for ForkActivationTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more