Crate sn_peers_acquisition

Crate sn_peers_acquisition 

Source

Modules§

error

Structs§

PeersArgs

Constants§

SAFE_PEERS_ENV
The name of the environment variable that can be used to pass peers to the node.

Functions§

get_peers_from_url
Get and parse a list of peers from a URL. The URL should contain one multiaddr per line.
parse_peer_addr
Parse strings like 1.2.3.4:1234 and /ip4/1.2.3.4/tcp/1234 into a multiaddr.