Function phron_finality::network::tcp::new_tcp_network
source · pub async fn new_tcp_network<A: ToSocketAddrs>(
listening_addresses: A,
external_addresses: Vec<String>,
authority_pen: &AuthorityPen
) -> Result<(impl Dialer<SignedTcpAddressingInformation>, impl Listener, impl NetworkIdentity<AddressingInformation = SignedTcpAddressingInformation, PeerId = AuthorityIdWrapper>), Error>
Expand description
Create a new tcp network, including an identity that can be used for constructing authentications for other peers.