Function spawn_network_node

Source
pub async fn spawn_network_node<T: NodeType, D: DhtPersistentStorage>(
    config: NetworkNodeConfig<T>,
    dht_persistent_storage: D,
    consensus_key_to_pid_map: Arc<Mutex<BiMap<T::SignatureKey, PeerId>>>,
    id: usize,
) -> Result<(NetworkNodeReceiver, NetworkNodeHandle<T>), NetworkError>
Expand description

Spawn a network node task task and return the handle and the receiver for it

ยงErrors

Errors if spawning the task fails