Function swarm

Source
pub fn swarm<B, I, J>(
    local_key: Keypair,
    chain_id: &[u8],
    listen_on: J,
    peers: I,
    behaviour: B,
) -> Swarm<B>
where B: NetworkBehaviour, I: IntoIterator<Item = Multiaddr>, J: IntoIterator<Item = Multiaddr>,
Expand description

Create and configure a libp2p swarm. This will be able to talk to the Mina node.