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

Method discv5_config

crates/execution/node/src/node.rs:1293–1302  ·  view source on GitHub ↗

Creates the inner discv5 config with the Base protocol identity.

(&self, args: &RethNetworkArgs)

Source from the content-addressed store, hash-verified

1291
1292 /// Creates the inner discv5 config with the Base protocol identity.
1293 pub fn discv5_config(&self, args: &RethNetworkArgs) -> reth_discv5::discv5::Config {
1294 let mut builder = reth_discv5::discv5::ConfigBuilder::new(Self::discv5_listen_config(args));
1295
1296 builder.protocol_identity(reth_discv5::discv5::ProtocolIdentity {
1297 protocol_id: BASE_V0_PROTOCOL_VERSION,
1298 ..Default::default()
1299 });
1300
1301 builder.build()
1302 }
1303
1304 /// Creates the discv5 listen config from reth network arguments.
1305 ///

Calls 2

newFunction · 0.50
buildMethod · 0.45