Struct oasis_core_runtime::consensus::registry::ExecutorParameters
source · pub struct ExecutorParameters {
pub group_size: u16,
pub group_backup_size: u16,
pub allowed_stragglers: u16,
pub round_timeout: i64,
pub max_messages: u32,
pub min_live_rounds_percent: u8,
pub max_missed_proposals_percent: u8,
pub min_live_rounds_eval: u64,
pub max_liveness_fails: u8,
}
Expand description
Parameters for the executor committee.
Fields§
§group_size: u16
Size of the committee.
group_backup_size: u16
Size of the discrepancy resolution group.
allowed_stragglers: u16
Number of allowed stragglers.
round_timeout: i64
Round timeout in consensus blocks.
max_messages: u32
Maximum number of messages that can be emitted by the runtime in a single round.
min_live_rounds_percent: u8
Minimum percentage of rounds in an epoch that a node must participate in positively in order to be considered live. Nodes not satisfying this may be penalized.
max_missed_proposals_percent: u8
Maximum percentage of proposed rounds in an epoch that can fail for a node to be considered live. Nodes not satisfying this may be penalized. Zero means that all proposed rounds can fail.
min_live_rounds_eval: u64
Minimum number of live rounds in an epoch for the liveness calculations to be considered for evaluation.
max_liveness_fails: u8
Maximum number of liveness failures that are tolerated before suspending and/or slashing the node. Zero means unlimited.
Trait Implementations§
source§impl Clone for ExecutorParameters
impl Clone for ExecutorParameters
source§fn clone(&self) -> ExecutorParameters
fn clone(&self) -> ExecutorParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecutorParameters
impl Debug for ExecutorParameters
source§impl Decode for ExecutorParameters
impl Decode for ExecutorParameters
source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
try_default
in case the value is null or
undefined.source§impl Default for ExecutorParameters
impl Default for ExecutorParameters
source§fn default() -> ExecutorParameters
fn default() -> ExecutorParameters
source§impl Encode for ExecutorParameters
impl Encode for ExecutorParameters
source§impl EncodeAsMap for ExecutorParameters
impl EncodeAsMap for ExecutorParameters
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
source§impl Hash for ExecutorParameters
impl Hash for ExecutorParameters
source§impl PartialEq for ExecutorParameters
impl PartialEq for ExecutorParameters
source§fn eq(&self, other: &ExecutorParameters) -> bool
fn eq(&self, other: &ExecutorParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ExecutorParameters
impl StructuralPartialEq for ExecutorParameters
Auto Trait Implementations§
impl Freeze for ExecutorParameters
impl RefUnwindSafe for ExecutorParameters
impl Send for ExecutorParameters
impl Sync for ExecutorParameters
impl Unpin for ExecutorParameters
impl UnwindSafe for ExecutorParameters
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.