Function sc_consensus_beefy::communication::beefy_peers_set_config
source · pub fn beefy_peers_set_config<B: Block, N: NetworkBackend<B, <B as Block>::Hash>>(
gossip_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 beefy_protocol_name::gossip_protocol_name
.