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 ==
.