Struct sc_consensus_grandpa::Config
source · pub struct Config {
pub gossip_duration: Duration,
pub justification_generation_period: u32,
pub observer_enabled: bool,
pub local_role: Role,
pub name: Option<String>,
pub keystore: Option<KeystorePtr>,
pub telemetry: Option<TelemetryHandle>,
pub protocol_name: ProtocolName,
}
Expand description
Configuration for the GRANDPA service
Fields§
§gossip_duration: Duration
The expected duration for a message to be gossiped across the network.
justification_generation_period: u32
Justification generation period (in blocks). GRANDPA will try to generate justifications at least every justification_generation_period blocks. There are some other events which might cause justification generation.
observer_enabled: bool
Whether the GRANDPA observer protocol is live on the network and thereby a full-node not running as a validator is running the GRANDPA observer protocol (we will only issue catch-up requests to authorities when the observer protocol is enabled).
local_role: Role
The role of the local node (i.e. authority, full-node or light).
name: Option<String>
Some local identifier of the voter.
keystore: Option<KeystorePtr>
The keystore that manages the keys of this node.
telemetry: Option<TelemetryHandle>
TelemetryHandle instance.
protocol_name: ProtocolName
Chain specific GRANDPA protocol name. See crate::protocol_standard_name
.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations§
source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,
T
. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.