Creates the inner discv5 config with the Base protocol identity.
(&self, args: &RethNetworkArgs)
| 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 | /// |