Skip to main content

build_with_chain

Function build_with_chain 

Source
pub async fn build_with_chain<Chain, Srv: HoprSessionServer<Session = IncomingSession, Error: Display> + Clone + Send + 'static>(
    chain_key: &ChainKeypair,
    packet_key: &OffchainKeypair,
    config: HoprLibConfig,
    probe_cfg: Option<ProberConfig>,
    chain_connector: Chain,
    server: Srv,
) -> Result<Arc<Hopr<Chain, SharedChannelGraph, HoprNetwork, SharedTicketManager>>>
where Chain: HoprChainApi + Clone + Send + Sync + 'static,
Expand description

Builds a HOPR node with a custom chain connector using canonical implementations for all other components.