Struct ckb_types::core::hardfork::HardForkSwitchBuilder [−][src]
pub struct HardForkSwitchBuilder {
pub rfc_0028: Option<EpochNumber>,
pub rfc_0029: Option<EpochNumber>,
pub rfc_0030: Option<EpochNumber>,
pub rfc_0031: Option<EpochNumber>,
pub rfc_0032: Option<EpochNumber>,
pub rfc_0036: Option<EpochNumber>,
pub rfc_0038: Option<EpochNumber>,
}
Expand description
Builder for HardForkSwitch
.
Fields
rfc_0028: Option<EpochNumber>
Use input cell committing block timestamp as the start time for the relative timestamp in since
.
Ref: CKB RFC 0028
rfc_0029: Option<EpochNumber>
Allow Multiple Cell Dep Matches When There Is No Ambiguity.
Ref: CKB RFC 0029
rfc_0030: Option<EpochNumber>
Ensure That Index Is Less Than Length In the Input Since Field Using Epoch With Fraction.
Ref: CKB RFC 0030
rfc_0031: Option<EpochNumber>
Add a variable length field in the block: reuse uncles_hash
in the header as extra_hash
.
Ref: CKB RFC 0031
rfc_0032: Option<EpochNumber>
CKB VM Version Selection.
This feature include 4 parts:
- CKB VM Version Selection.
- CKB VM version 1.
- CKB VM Syscalls 2.
- P2P protocol upgrade.
Ref:
rfc_0036: Option<EpochNumber>
Remove Header Deps Immature Rule.
Ref: CKB RFC 0036
rfc_0038: Option<EpochNumber>
Disallow over the max dep expansion limit.
Ref: CKB RFC 0038
Implementations
Set the first epoch number of the RFC PR 0028.
Never enable the RFC PR 0028.
Set the first epoch number of the RFC PR 0029.
Never enable the RFC PR 0029.
Set the first epoch number of the RFC PR 0030.
Never enable the RFC PR 0030.
Set the first epoch number of the RFC PR 0031.
Never enable the RFC PR 0031.
Set the first epoch number of the RFC PR 0032.
Never enable the RFC PR 0032.
Set the first epoch number of the RFC PR 0036.
Never enable the RFC PR 0036.
Set the first epoch number of the RFC PR 0038.
Never enable the RFC PR 0038.
Build a new HardForkSwitch
.
Returns an error if failed at any check, for example, there maybe are some features depend on others.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for HardForkSwitchBuilder
impl Send for HardForkSwitchBuilder
impl Sync for HardForkSwitchBuilder
impl Unpin for HardForkSwitchBuilder
impl UnwindSafe for HardForkSwitchBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more