Skip to content

Commit d34f1c5

Browse files
authored
Merge pull request ethereum#3874 from nalepae/enr-ip6
ENR structure: Add `tcp6`, `quic6` and `udp6`
2 parents 4808c8d + 8ab7bc6 commit d34f1c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

specs/phase0/p2p-interface.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ This section outlines the specification for the networking stack in Ethereum con
127127
Even though libp2p is a multi-transport stack (designed to listen on multiple simultaneous transports and endpoints transparently),
128128
we hereby define a profile for basic interoperability.
129129

130-
All implementations MUST support the TCP libp2p transport, and it MUST be enabled for both dialing and listening (i.e. outbound and inbound connections).
131-
The libp2p TCP transport supports listening on IPv4 and IPv6 addresses (and on multiple simultaneously).
130+
All implementations MUST support the TCP libp2p transport, MAY support the QUIC (UDP) libp2p transport, and MUST be enabled for both dialing and listening (i.e. outbound and inbound connections).
131+
The libp2p TCP and QUIC (UDP) transports support listening on IPv4 and IPv6 addresses (and on multiple simultaneously).
132132

133133
Clients must support listening on at least one of IPv4 or IPv6.
134134
Clients that do _not_ have support for listening on IPv4 SHOULD be cognizant of the potential disadvantages in terms of
@@ -963,9 +963,9 @@ The Ethereum Node Record (ENR) for an Ethereum consensus client MUST contain the
963963
The ENR MAY contain the following entries:
964964

965965
- An IPv4 address (`ip` field) and/or IPv6 address (`ip6` field).
966-
- A TCP port (`tcp` field) representing the local libp2p TCP listening port.
967-
- A QUIC port (`quic` field) representing the local libp2p QUIC (UDP) listening port.
968-
- A UDP port (`udp` field) representing the local discv5 listening port.
966+
- An IPv4 TCP port (`tcp` field) representing the local libp2p TCP listening port and/or the corresponding IPv6 port (`tcp6` field).
967+
- An IPv4 QUIC port (`quic` field) representing the local libp2p QUIC (UDP) listening port and/or the corresponding IPv6 port (`quic6` field).
968+
- An IPv4 UDP port (`udp` field) representing the local discv5 listening port and/or the corresponding IPv6 port (`udp6` field).
969969

970970
Specifications of these parameters can be found in the [ENR Specification](http://eips.ethereum.org/EIPS/eip-778).
971971

0 commit comments

Comments
 (0)