From 82f87889623541413db8c8075fae0aa06100fec0 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Wed, 26 Jun 2024 13:31:06 +0100 Subject: [PATCH] fix build --- .../networking/p2p/discovery/discv5/NodeRecordConverter.java | 1 + 1 file changed, 1 insertion(+) 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)); }