Struct vapjson::spec::authority_round::AuthorityRoundParams [−][src]
Authority params deserialization.
Fields
step_duration: StepDuration
Block duration, in seconds.
validators: ValidatorSet
Valid authorities
start_step: Option<Uint>
Starting step. Determined automatically if not specified. To be used for testing only.
validate_score_transition: Option<Uint>
Block at which score validation should start.
validate_step_transition: Option<Uint>
Block from which monotonic steps start.
immediate_transitions: Option<bool>
Whether transitions should be immediate.
block_reward: Option<Uint>
Reward per block in wei.
block_reward_contract_transition: Option<Uint>
Block at which the block reward contract should start being used. This option allows one to
add a single block reward contract transition and is compatible with the multiple address
option block_reward_contract_transitions
below.
block_reward_contract_address: Option<Address>
Block reward contract address which overrides the block_reward
setting. This option allows
one to add a single block reward contract address and is compatible with the multiple
address option block_reward_contract_transitions
below.
block_reward_contract_transitions: Option<BTreeMap<Uint, Address>>
Block reward contract addresses with their associated starting block numbers.
Setting the block reward contract overrides block_reward
. If the single block reward
contract address is also present then it is added into the map at the block number stored in
block_reward_contract_transition
or 0 if that block number is not provided. Therefore both
a single block reward contract transition and a map of reward contract transitions can be
used simulataneously in the same configuration. In such a case the code requires that the
block number of the single transition is strictly less than any of the block numbers in the
map.
block_reward_contract_code: Option<Bytes>
Block reward code. This overrides the block reward contract address.
maximum_uncle_count_transition: Option<Uint>
Block at which maximum uncle count should be considered.
maximum_uncle_count: Option<Uint>
Maximum number of accepted uncles.
empty_steps_transition: Option<Uint>
Block at which empty step messages should start.
maximum_empty_steps: Option<Uint>
Maximum number of accepted empty steps.
strict_empty_steps_transition: Option<Uint>
Strict validation of empty steps transition block.
two_thirds_majority_transition: Option<Uint>
First block for which a 2/3 quorum (instead of 1/2) is required.
randomness_contract_address: Option<BTreeMap<Uint, Address>>
The random number contract’s address, or a map of contract transitions.
block_gas_limit_contract_transitions: Option<BTreeMap<Uint, Address>>
The addresses of contracts that determine the block gas limit starting from the block number associated with each of those contracts.
Trait Implementations
impl Debug for AuthorityRoundParams
[src]
impl<'de> Deserialize<'de> for AuthorityRoundParams
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<AuthorityRoundParams> for AuthorityRoundParams
[src]
fn eq(&self, other: &AuthorityRoundParams) -> bool
[src]
fn ne(&self, other: &AuthorityRoundParams) -> bool
[src]
impl StructuralPartialEq for AuthorityRoundParams
[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> 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, 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>,