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

Method build_network

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

Source from the content-addressed store, hash-verified

1291 NetworkHandle<BasicNetworkPrimitives<PrimitivesTy<Node::Types>, PoolPooledTx<Pool>>>;
1292
1293 async fn build_network(
1294 self,
1295 ctx: &BuilderContext<Node>,
1296 pool: Pool,
1297 ) -> eyre::Result<Self::Network> {
1298 let network_config = self.network_config(ctx)?;
1299 let network = NetworkManager::builder(network_config).await?;
1300 let handle = ctx.start_network(network, pool);
1301 info!(target: "reth::cli", enode=%handle.local_node_record(), "P2P networking initialized");
1302
1303 Ok(handle)
1304 }
1305}
1306
1307/// A basic Base consensus builder.

Callers

nothing calls this directly

Calls 1

network_configMethod · 0.80

Tested by

no test coverage detected