From 9ae52a97cdea827d74e5500ff93fd5b42045c066 Mon Sep 17 00:00:00 2001 From: garyschulte Date: Wed, 3 Apr 2024 14:18:54 -0700 Subject: [PATCH] align PeerReputation timout threshold with peer max outstanding requests (#6877) Signed-off-by: garyschulte --- .../hyperledger/besu/ethereum/eth/manager/PeerReputation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java index 10a919349f..687a93191c 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java @@ -37,7 +37,7 @@ public class PeerReputation implements Comparable { static final int DEFAULT_MAX_SCORE = 150; static final int DEFAULT_INITIAL_SCORE = 100; private static final Logger LOG = LoggerFactory.getLogger(PeerReputation.class); - public static final int TIMEOUT_THRESHOLD = 3; + public static final int TIMEOUT_THRESHOLD = 5; public static final int USELESS_RESPONSE_THRESHOLD = 5; private final ConcurrentMap timeoutCountByRequestType =