Struct ckb_types::core::hardfork::HardForkSwitch [−][src]
pub struct HardForkSwitch { /* fields omitted */ }
Expand description
A switch to select hard fork features base on the epoch number.
For safety, all fields are private and not allowed to update.
This structure can only be constructed by HardForkSwitchBuilder
.
Implementations
Creates a new builder to build an instance.
Creates a new builder based on the current instance.
Creates a new instance that all hard fork features are disabled forever.
Returns a vector of epoch numbers, and there are new features which require refrese tx-pool caches will be enabled at those epochs.
Return the first epoch number when the RFC PR 0028 is enabled.
An alias for the method rfc_0028(&self) to let the code to be more readable.
If the RFC PR 0028 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0029 is enabled.
An alias for the method rfc_0029(&self) to let the code to be more readable.
pub fn is_allow_multiple_matches_on_identical_data_enabled(
&self,
epoch_number: EpochNumber
) -> bool
pub fn is_allow_multiple_matches_on_identical_data_enabled(
&self,
epoch_number: EpochNumber
) -> bool
If the RFC PR 0029 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0030 is enabled.
An alias for the method rfc_0030(&self) to let the code to be more readable.
If the RFC PR 0030 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0031 is enabled.
An alias for the method rfc_0031(&self) to let the code to be more readable.
If the RFC PR 0031 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0032 is enabled.
An alias for the method rfc_0032(&self) to let the code to be more readable.
If the RFC PR 0032 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0036 is enabled.
An alias for the method rfc_0036(&self) to let the code to be more readable.
If the RFC PR 0036 is enabled at the provided epoch.
Return the first epoch number when the RFC PR 0038 is enabled.
An alias for the method rfc_0038(&self) to let the code to be more readable.
pub fn is_disallow_over_max_dep_expansion_limit_enabled(
&self,
epoch_number: EpochNumber
) -> bool
pub fn is_disallow_over_max_dep_expansion_limit_enabled(
&self,
epoch_number: EpochNumber
) -> bool
If the RFC PR 0038 is enabled at the provided epoch.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HardForkSwitch
impl Send for HardForkSwitch
impl Sync for HardForkSwitch
impl Unpin for HardForkSwitch
impl UnwindSafe for HardForkSwitch
Blanket Implementations
Mutably borrows from an owned value. Read more