Module sc_network_common::config
source · Expand description
Configuration of the networking layer.
Structs
Address of a node, including its identity.
Extension to
SetConfig
for sets that aren’t the default set.Custom handshake for the notification protocol
Protocol name prefix, transmitted on the wire for legacy protocol names.
I.e.,
dot
in /dot/sync/2
. Should be unique for each chain. Always UTF-8.
Deprecated in favour of genesis hash & fork ID based protocol names.Configuration for a set of nodes.
Enums
The policy for connections to non-reserved peers.
Error that can be generated by
parse_str_addr
.Configuration for the transport layer.
Functions
Splits a Multiaddress into a Multiaddress and PeerId.
Parses a string address and splits it into Multiaddress and PeerId, if
valid.