Function polkadot_node_network_protocol::peer_set::peer_sets_info
source · pub fn peer_sets_info(
is_authority: IsAuthority,
peerset_protocol_names: &PeerSetProtocolNames
) -> Vec<NonDefaultSetConfig>
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.