MCPcopy Create free account
hub / github.com/base/base / build_network

Method build_network

crates/execution/node/src/node.rs:1417–1428  ·  view source on GitHub ↗
(
        self,
        ctx: &BuilderContext<Node>,
        pool: Pool,
    )

Source from the content-addressed store, hash-verified

1415 NetworkHandle<BasicNetworkPrimitives<PrimitivesTy<Node::Types>, PoolPooledTx<Pool>>>;
1416
1417 async fn build_network(
1418 self,
1419 ctx: &BuilderContext<Node>,
1420 pool: Pool,
1421 ) -> eyre::Result<Self::Network> {
1422 let network_config = self.network_config(ctx)?;
1423 let network = NetworkManager::builder(network_config).await?;
1424 let handle = ctx.start_network(network, pool);
1425 info!(target: "reth::cli", enode=%handle.local_node_record(), "P2P networking initialized");
1426
1427 Ok(handle)
1428 }
1429}
1430
1431/// A basic Base consensus builder.

Callers

nothing calls this directly

Calls 2

builderFunction · 0.50
network_configMethod · 0.45

Tested by

no test coverage detected