pub struct ForkSpec {
pub chain_id: ChainId,
pub hardfork: Hardfork,
pub activation: ForkActivation,
}Expand description
Ethereum fork rules selected for a validation operation.
Fields§
§chain_id: ChainIdChain being validated.
hardfork: HardforkHardfork these activation rules identify.
activation: ForkActivationActivation rule for this fork view.
Implementations§
Source§impl ForkSpec
impl ForkSpec
Sourcepub fn is_active_at(
self,
block_number: BlockNumber,
timestamp: UnixTimestamp,
) -> bool
pub fn is_active_at( self, block_number: BlockNumber, timestamp: UnixTimestamp, ) -> bool
Returns whether this fork is active at the supplied block and timestamp.
Trait Implementations§
impl Copy for ForkSpec
impl Eq for ForkSpec
impl StructuralPartialEq for ForkSpec
Auto Trait Implementations§
impl Freeze for ForkSpec
impl RefUnwindSafe for ForkSpec
impl Send for ForkSpec
impl Sync for ForkSpec
impl Unpin for ForkSpec
impl UnsafeUnpin for ForkSpec
impl UnwindSafe for ForkSpec
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