#[repr(u8)]pub enum SpecId {
Show 15 variants
FRONTIER = 0,
HOMESTEAD = 1,
TANGERINE = 2,
SPURIOUS_DRAGON = 3,
BYZANTIUM = 4,
PETERSBURG = 5,
ISTANBUL = 6,
BERLIN = 7,
LONDON = 8,
MERGE = 9,
SHANGHAI = 10,
CANCUN = 11,
PRAGUE = 12,
OSAKA = 13,
AMSTERDAM = 14,
}Expand description
Specification IDs and their activation points.
Information was obtained from the Ethereum Execution Specifications.
Variants§
FRONTIER = 0
Frontier
Activated at block 1
HOMESTEAD = 1
Homestead
Activated at block 1150000
TANGERINE = 2
Tangerine Whistle
Activated at block 2463000
SPURIOUS_DRAGON = 3
Spurious Dragon
Activated at block 2675000
BYZANTIUM = 4
Byzantium
Activated at block 4370000
PETERSBURG = 5
Petersburg
Activated at block 7280000
ISTANBUL = 6
Istanbul
Activated at block 9069000
BERLIN = 7
Berlin
Activated at block 12244000
LONDON = 8
London
Activated at block 12965000
MERGE = 9
Paris/Merge
Activated at block 15537394
SHANGHAI = 10
Shanghai
Activated at block 17034870 (timestamp 1681338455)
CANCUN = 11
Cancun
Activated at block 19426587 (timestamp 1710338135)
PRAGUE = 12
Prague
Activated at block 22431084
OSAKA = 13
Osaka
Activated at block 23935694
AMSTERDAM = 14
Amsterdam
Activated at block TBD
Implementations§
Source§impl SpecId
impl SpecId
Sourcepub const NEXT: Self = Self::AMSTERDAM
pub const NEXT: Self = Self::AMSTERDAM
The latest known spec. This may refer to a highly experimental hard fork that is not yet finalized or deployed on any network.
Warning: This value will change between minor versions as new hard forks are added. Do not rely on it for stable behavior.
Sourcepub const fn is_enabled_in(self, other: Self) -> bool
pub const fn is_enabled_in(self, other: Self) -> bool
Returns true if the given specification ID is enabled in this spec.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpecId
impl<'de> Deserialize<'de> for SpecId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Ord for SpecId
impl Ord for SpecId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for SpecId
impl PartialOrd for SpecId
impl Copy for SpecId
impl Eq for SpecId
impl StructuralPartialEq for SpecId
Auto Trait Implementations§
impl Freeze for SpecId
impl RefUnwindSafe for SpecId
impl Send for SpecId
impl Sync for SpecId
impl Unpin for SpecId
impl UnsafeUnpin for SpecId
impl UnwindSafe for SpecId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.