Struct ckb_types::core::hardfork::CKB2021Builder
source · pub struct CKB2021Builder {
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 CKB2021
.
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§
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0028(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0028(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0028.
sourcepub fn disable_rfc_0028(self) -> Self
pub fn disable_rfc_0028(self) -> Self
Never enable the RFC PR 0028.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0029(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0029(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0029.
sourcepub fn disable_rfc_0029(self) -> Self
pub fn disable_rfc_0029(self) -> Self
Never enable the RFC PR 0029.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0030(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0030(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0030.
sourcepub fn disable_rfc_0030(self) -> Self
pub fn disable_rfc_0030(self) -> Self
Never enable the RFC PR 0030.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0031(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0031(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0031.
sourcepub fn disable_rfc_0031(self) -> Self
pub fn disable_rfc_0031(self) -> Self
Never enable the RFC PR 0031.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0032(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0032(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0032.
sourcepub fn disable_rfc_0032(self) -> Self
pub fn disable_rfc_0032(self) -> Self
Never enable the RFC PR 0032.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0036(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0036(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0036.
sourcepub fn disable_rfc_0036(self) -> Self
pub fn disable_rfc_0036(self) -> Self
Never enable the RFC PR 0036.
source§impl CKB2021Builder
impl CKB2021Builder
sourcepub fn rfc_0038(self, epoch_number: EpochNumber) -> Self
pub fn rfc_0038(self, epoch_number: EpochNumber) -> Self
Set the first epoch number of the RFC PR 0038.
sourcepub fn disable_rfc_0038(self) -> Self
pub fn disable_rfc_0038(self) -> Self
Never enable the RFC PR 0038.
Trait Implementations§
source§impl Clone for CKB2021Builder
impl Clone for CKB2021Builder
source§fn clone(&self) -> CKB2021Builder
fn clone(&self) -> CKB2021Builder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more