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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.