Struct ckb_chain_spec::Params [−][src]
Parameters for CKB block chain
Fields
initial_primary_epoch_reward: Option<Capacity>
The initial_primary_epoch_reward
secondary_epoch_reward: Option<Capacity>
The 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
primary_epoch_reward_halving_interval: Option<EpochNumber>
The primary_epoch_reward_halving_interval
epoch_duration_target: Option<u64>
The epoch_duration_target
genesis_epoch_length: Option<BlockNumber>
The genesis_epoch_length
permanent_difficulty_in_dummy: Option<bool>
The permanent_difficulty_in_dummy
max_block_proposals_limit: Option<u64>
The max_block_proposals_limit
orphan_rate_target: Option<(u32, u32)>
The 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Params
[src]
impl PartialEq<Params> for Params
[src]
impl Serialize for Params
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,