referrerpolicy=no-referrer-when-downgrade

Function sc_consensus_grandpa::grandpa_peers_set_config

source ·
pub fn grandpa_peers_set_config<B: BlockT, N: NetworkBackend<B, <B as BlockT>::Hash>>(
    protocol_name: ProtocolName,
    metrics: NotificationMetrics,
    peer_store_handle: Arc<dyn PeerStoreProvider>,
) -> (N::NotificationProtocolConfig, Box<dyn NotificationService>)
Expand description

Returns the configuration value to put in [sc_network::config::FullNetworkConfiguration]. For standard protocol name see crate::protocol_standard_name.