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§
Sourcefn is_fork_active(&self, fork: ForkId, height: u64) -> bool
fn is_fork_active(&self, fork: ForkId, height: u64) -> bool
Returns true if the fork is active at the given block height.