Struct authority_round::AuthorityRoundParams [−][src]
AuthorityRound params.
Fields
step_durations: BTreeMap<u64, u64>A map defining intervals of blocks with the given times (in seconds) to wait before next
block or authority switching. The keys in the map are steps of starting blocks of those
periods. The entry at 0 should be defined.
Wait times (durations) are additionally required to be less than 65535 since larger values lead to slow block issuance.
start_step: Option<u64>Starting step,
validators: Box<dyn ValidatorSet>Valid validators.
validate_score_transition: u64Chain score validation transition block.
validate_step_transition: u64Monotonic step validation transition block.
immediate_transitions: boolImmediate transitions.
block_reward: U256Block reward in base units.
block_reward_contract_transitions: BTreeMap<u64, BlockRewardContract>Block reward contract addresses with their associated starting block numbers.
maximum_uncle_count_transition: u64Number of accepted uncles transition block.
maximum_uncle_count: usizeNumber of accepted uncles.
empty_steps_transition: u64Empty step messages transition block.
two_thirds_majority_transition: BlockNumberFirst block for which a 2/3 quorum (instead of 1/2) is required.
maximum_empty_steps: usizeNumber of accepted empty steps.
strict_empty_steps_transition: u64Transition block to strict empty steps validation.
randomness_contract_address: BTreeMap<u64, Address>If set, enables random number contract integration. It maps the transition block to the contract address.
block_gas_limit_contract_transitions: BTreeMap<u64, Address>The addresses of contracts that determine the block gas limit with their associated block numbers.
Trait Implementations
impl From<AuthorityRoundParams> for AuthorityRoundParams[src]
fn from(p: AuthorityRoundParams) -> Self[src]
Auto Trait Implementations
impl !RefUnwindSafe for AuthorityRoundParams
impl Send for AuthorityRoundParams
impl Sync for AuthorityRoundParams
impl Unpin for AuthorityRoundParams
impl !UnwindSafe for AuthorityRoundParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
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>,