From a3f5d4ac689cf1c572fe5c2bdad18077c29555ef Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Fri, 11 Oct 2024 14:35:06 +1100 Subject: [PATCH] 7311: Also filter by whether a peer is fully validated Signed-off-by: Matilda Clerke --- .../java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java | 1 + 1 file changed, 1 insertion(+) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java index 09a998cf64..d19c7dfca2 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeers.java @@ -473,6 +473,7 @@ public class EthPeers implements PeerSelector { return streamAvailablePeers() .filter(filter) .filter(EthPeer::hasAvailableRequestCapacity) + .filter(EthPeer::isFullyValidated) .min(LEAST_TO_MOST_BUSY); }