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)>,
    pub hardfork: Option<HardForkConfig>,
}
Expand description

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

hardfork: Option<HardForkConfig>

The parameters for hard fork features.

See hardfork_switch

Implementations

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

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

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

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

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

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

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

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

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

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

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

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

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.