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

Method discv5_config

crates/execution/node/src/node.rs:1165–1174  ·  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

1163
1164 /// Creates the inner discv5 config with the Base protocol identity.
1165 pub fn discv5_config(&self, args: &RethNetworkArgs) -> reth_discv5::discv5::Config {
1166 let mut builder = reth_discv5::discv5::ConfigBuilder::new(Self::discv5_listen_config(args));
1167
1168 builder.protocol_identity(reth_discv5::discv5::ProtocolIdentity {
1169 protocol_id: BASE_V0_PROTOCOL_VERSION,
1170 ..Default::default()
1171 });
1172
1173 builder.build()
1174 }
1175
1176 /// Creates the discv5 listen config from reth network arguments.
1177 ///

Calls 1

buildMethod · 0.45