Function multi_validator_libp2p::infra::gen_local_address
source · pub fn gen_local_address<const BASE_PORT: u16>(node_index: usize) -> SocketAddr
Expand description
Generate a local address for node with index node_index
, offsetting from port BASE_PORT
.
§Panics
If node_index
is too large to fit in a u16