[−][src]Struct ckb_chain_spec::consensus::ConsensusBuilder
TODO(doc): @zhangsoledad
Implementations
impl ConsensusBuilder
[src]
pub fn new(genesis_block: BlockView, genesis_epoch_ext: EpochExt) -> Self
[src]
TODO(doc): @zhangsoledad
pub fn build(self) -> Consensus
[src]
TODO(doc): @zhangsoledad
pub fn id(self, id: String) -> Self
[src]
TODO(doc): @zhangsoledad
pub fn genesis_block(self, genesis_block: BlockView) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn initial_primary_epoch_reward(
self,
initial_primary_epoch_reward: Capacity
) -> Self
[src]
self,
initial_primary_epoch_reward: Capacity
) -> Self
TODO(doc): @zhangsoledad
#[must_use]pub fn secondary_epoch_reward(self, secondary_epoch_reward: Capacity) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn max_block_cycles(self, max_block_cycles: Cycle) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn max_block_bytes(self, max_block_bytes: u64) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn cellbase_maturity(
self,
cellbase_maturity: EpochNumberWithFraction
) -> Self
[src]
self,
cellbase_maturity: EpochNumberWithFraction
) -> Self
TODO(doc): @zhangsoledad
pub fn tx_proposal_window(self, proposal_window: ProposalWindow) -> Self
[src]
TODO(doc): @zhangsoledad
pub fn pow(self, pow: Pow) -> Self
[src]
TODO(doc): @zhangsoledad
pub fn satoshi_pubkey_hash(self, pubkey_hash: H160) -> Self
[src]
TODO(doc): @zhangsoledad
pub fn satoshi_cell_occupied_ratio(self, ratio: Ratio) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn primary_epoch_reward_halving_interval(
self,
halving_interval: u64
) -> Self
[src]
self,
halving_interval: u64
) -> Self
TODO(doc): @zhangsoledad
#[must_use]pub fn epoch_duration_target(self, target: u64) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn permanent_difficulty_in_dummy(self, permanent: bool) -> Self
[src]
TODO(doc): @zhangsoledad
#[must_use]pub fn max_block_proposals_limit(self, max_block_proposals_limit: u64) -> Self
[src]
TODO(doc): @zhangsoledad
Trait Implementations
impl Default for ConsensusBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConsensusBuilder
impl Send for ConsensusBuilder
impl Sync for ConsensusBuilder
impl Unpin for ConsensusBuilder
impl UnwindSafe for ConsensusBuilder
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,