referrerpolicy=no-referrer-when-downgrade

Function polkadot_network_bridge::peer_sets_info

source ·
pub fn peer_sets_info<B, N>(
    is_authority: IsAuthority,
    peerset_protocol_names: &PeerSetProtocolNames,
    metrics: NotificationMetrics,
    peer_store_handle: Arc<dyn PeerStoreProvider>,
) -> Vec<(<N as NetworkBackend<B, <B as Block>::Hash>>::NotificationProtocolConfig, (PeerSet, Box<dyn NotificationService>))>
where B: Block, N: NetworkBackend<B, <B as Block>::Hash>,
Expand description

Peer set info for network initialization.

To be passed to FullNetworkConfiguration::add_notification_protocol. Get NonDefaultSetConfigs for all available peer sets, at their default versions.

Should be used during network configuration (added to NetworkConfiguration::extra_sets) or shortly after startup to register the protocols with the network service.