diff --git a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/discovery/discv5/NodeRecordConverter.java b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/discovery/discv5/NodeRecordConverter.java index 6889becad42..21d34ee20e8 100644 --- a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/discovery/discv5/NodeRecordConverter.java +++ b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/discovery/discv5/NodeRecordConverter.java @@ -38,6 +38,7 @@ public Optional convertToDiscoveryPeer( final NodeRecord nodeRecord, final SchemaDefinitions schemaDefinitions) { return nodeRecord .getTcpAddress() + .or(nodeRecord::getTcp6Address) .map(address -> socketAddressToDiscoveryPeer(schemaDefinitions, nodeRecord, address)); }