Struct sc_consensus_grandpa::GrandpaParams
source · pub struct GrandpaParams<Block: BlockT, C, N, S, SC, VR> {
pub config: Config,
pub link: LinkHalf<Block, C, SC>,
pub network: N,
pub sync: S,
pub voting_rule: VR,
pub prometheus_registry: Option<Registry>,
pub shared_voter_state: SharedVoterState,
pub telemetry: Option<TelemetryHandle>,
pub offchain_tx_pool_factory: OffchainTransactionPoolFactory<Block>,
}Expand description
Parameters used to run Grandpa.
Fields§
§config: ConfigConfiguration for the GRANDPA service.
link: LinkHalf<Block, C, SC>A link to the block import worker.
network: NThe Network instance.
It is assumed that this network will feed us Grandpa notifications. When using the
sc_network crate, it is assumed that the Grandpa notifications protocol has been passed
to the configuration of the networking. See grandpa_peers_set_config.
sync: SEvent stream for syncing-related events.
voting_rule: VRA voting rule used to potentially restrict target votes.
prometheus_registry: Option<Registry>The prometheus metrics registry.
The voter state is exposed at an RPC endpoint.
telemetry: Option<TelemetryHandle>TelemetryHandle instance.
offchain_tx_pool_factory: OffchainTransactionPoolFactory<Block>Offchain transaction pool factory.
This will be used to create an offchain transaction pool instance for sending an equivocation report from the runtime.
Auto Trait Implementations§
impl<Block, C, N, S, SC, VR> !RefUnwindSafe for GrandpaParams<Block, C, N, S, SC, VR>
impl<Block, C, N, S, SC, VR> Send for GrandpaParams<Block, C, N, S, SC, VR>where C: Send + Sync, N: Send, S: Send, SC: Send, VR: Send,
impl<Block, C, N, S, SC, VR> Sync for GrandpaParams<Block, C, N, S, SC, VR>where C: Send + Sync, N: Sync, S: Sync, SC: Sync, VR: Sync,
impl<Block, C, N, S, SC, VR> Unpin for GrandpaParams<Block, C, N, S, SC, VR>where N: Unpin, S: Unpin, SC: Unpin, VR: Unpin,
impl<Block, C, N, S, SC, VR> !UnwindSafe for GrandpaParams<Block, C, N, S, SC, VR>
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>,
Consume self to return an equivalent value of
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
The counterpart to
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
Consume self to return an equivalent value of
T.