feat(discv5): config via cli (#7394)

This commit is contained in:
Emilia Hane
2024-04-03 14:27:46 +02:00
committed by GitHub
parent 05c9f61a38
commit 3cafd586cf
12 changed files with 149 additions and 16 deletions

View File

@ -94,6 +94,16 @@ pub const DEFAULT_DISCOVERY_ADDR: IpAddr = IpAddr::V4(Ipv4Addr::UNSPECIFIED);
/// Note: the default TCP port is the same.
pub const DEFAULT_DISCOVERY_PORT: u16 = 30303;
/// The default address for discv5 via UDP.
///
/// Note: the default TCP address is the same.
pub const DEFAULT_DISCOVERY_V5_ADDR: IpAddr = IpAddr::V4(Ipv4Addr::UNSPECIFIED);
/// The default port for discv5 via UDP.
///
/// Default is port 9000.
pub const DEFAULT_DISCOVERY_V5_PORT: u16 = 9000;
/// The default address for discv4 via UDP: "0.0.0.0:30303"
///
/// Note: The default TCP address is the same.