Struct ckb_chain_spec::Params[][src]

pub struct Params {
    pub initial_primary_epoch_reward: Option<Capacity>,
    pub secondary_epoch_reward: Option<Capacity>,
    pub max_block_cycles: Option<Cycle>,
    pub max_block_bytes: Option<u64>,
    pub cellbase_maturity: Option<u64>,
    pub primary_epoch_reward_halving_interval: Option<EpochNumber>,
    pub epoch_duration_target: Option<u64>,
    pub genesis_epoch_length: Option<BlockNumber>,
    pub permanent_difficulty_in_dummy: Option<bool>,
    pub max_block_proposals_limit: Option<u64>,
    pub orphan_rate_target: Option<(u32, u32)>,
}

Parameters for CKB block chain

Fields

initial_primary_epoch_reward: Option<Capacity>

The initial_primary_epoch_reward

See initial_primary_epoch_reward

secondary_epoch_reward: Option<Capacity>

The secondary_epoch_reward

See secondary_epoch_reward

max_block_cycles: Option<Cycle>

The max_block_cycles

See max_block_cycles

max_block_bytes: Option<u64>

The max_block_bytes

See max_block_bytes

cellbase_maturity: Option<u64>

The cellbase_maturity

See cellbase_maturity

primary_epoch_reward_halving_interval: Option<EpochNumber>

The primary_epoch_reward_halving_interval

See primary_epoch_reward_halving_interval

epoch_duration_target: Option<u64>

The epoch_duration_target

See epoch_duration_target

genesis_epoch_length: Option<BlockNumber>

The genesis_epoch_length

See genesis_epoch_length

permanent_difficulty_in_dummy: Option<bool>

The permanent_difficulty_in_dummy

See permanent_difficulty_in_dummy

max_block_proposals_limit: Option<u64>

The max_block_proposals_limit

See max_block_proposals_limit

orphan_rate_target: Option<(u32, u32)>

The orphan_rate_target

See orphan_rate_target

Implementations

impl Params[src]

pub fn initial_primary_epoch_reward(&self) -> Capacity[src]

Return the initial_primary_epoch_reward, otherwise if None, returns the default value

pub fn secondary_epoch_reward(&self) -> Capacity[src]

Return the secondary_epoch_reward, otherwise if None, returns the default value

pub fn max_block_cycles(&self) -> Cycle[src]

Return the max_block_cycles, otherwise if None, returns the default value

pub fn max_block_bytes(&self) -> u64[src]

Return the max_block_bytes, otherwise if None, returns the default value

pub fn cellbase_maturity(&self) -> u64[src]

Return the cellbase_maturity, otherwise if None, returns the default value

pub fn primary_epoch_reward_halving_interval(&self) -> EpochNumber[src]

Return the primary_epoch_reward_halving_interval, otherwise if None, returns the default value

pub fn permanent_difficulty_in_dummy(&self) -> bool[src]

Return the permanent_difficulty_in_dummy, otherwise if None, returns the default value

pub fn epoch_duration_target(&self) -> u64[src]

Return the epoch_duration_target, otherwise if None, returns the default value

pub fn genesis_epoch_length(&self) -> BlockNumber[src]

Return the genesis_epoch_length, otherwise if None, returns the default value

pub fn max_block_proposals_limit(&self) -> BlockNumber[src]

Return the max_block_proposals_limit, otherwise if None, returns the default value

pub fn orphan_rate_target(&self) -> (u32, u32)[src]

Return the orphan_rate_target, otherwise if None, returns the default value

Trait Implementations

impl Clone for Params[src]

impl Debug for Params[src]

impl Default for Params[src]

impl<'de> Deserialize<'de> for Params[src]

impl Eq for Params[src]

impl PartialEq<Params> for Params[src]

impl Serialize for Params[src]

impl StructuralEq for Params[src]

impl StructuralPartialEq for Params[src]

Auto Trait Implementations

impl RefUnwindSafe for Params

impl Send for Params

impl Sync for Params

impl Unpin for Params

impl UnwindSafe for Params

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,