Function darkfid::utils::spawn_p2p

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

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