Function darkfid::utils::spawn_p2p

source ·
pub async fn spawn_p2p(
    settings: &Settings,
    validator: &ValidatorPtr,
    subscribers: &HashMap<&'static str, JsonSubscriber>,
    executor: Arc<Executor<'static>>
) -> P2pPtr
Expand description

Auxiliary function to generate the P2P network and register all its protocols.