Skip to main content

IsForkActive

Trait IsForkActive 

Source
pub trait IsForkActive {
    // Required method
    fn is_fork_active(&self, fork: ForkId, height: u64) -> bool;
}
Expand description

Trait for querying fork activation at a given height.

Implemented by ForkActivationTable and by BlockValidationContext (delegating to its table). Allows validation code to ask “is fork F active?” without depending on a concrete context type.

Required Methods§

Source

fn is_fork_active(&self, fork: ForkId, height: u64) -> bool

Returns true if the fork is active at the given block height.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§