Function polkadot_node_network_protocol::peer_set::peer_sets_info
source ยท pub fn peer_sets_info<B: Block, N: NetworkBackend<B, <B as Block>::Hash>>(
is_authority: IsAuthority,
peerset_protocol_names: &PeerSetProtocolNames,
metrics: NotificationMetrics,
peer_store_handle: Arc<dyn PeerStoreProvider>,
) -> Vec<(N::NotificationProtocolConfig, (PeerSet, Box<dyn NotificationService>))>
Expand description
Get NonDefaultSetConfig
s 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.