From 28238d97b1f7812626aa9d5594faf5e283e40132 Mon Sep 17 00:00:00 2001 From: Pawan Dhananjay Date: Wed, 13 Jan 2021 08:09:10 +0000 Subject: [PATCH] Disconnect from peers quicker on internet issues (#2147) ## Issue Addressed Fixes #2146 ## Proposed Changes Change ping timeout errors to return `LowToleranceErrors` so that we disconnect faster on internet failures/changes. --- beacon_node/eth2_libp2p/src/peer_manager/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/eth2_libp2p/src/peer_manager/mod.rs b/beacon_node/eth2_libp2p/src/peer_manager/mod.rs index 6263d3ad0..dbb69bfd3 100644 --- a/beacon_node/eth2_libp2p/src/peer_manager/mod.rs +++ b/beacon_node/eth2_libp2p/src/peer_manager/mod.rs @@ -480,7 +480,7 @@ impl PeerManager { Protocol::Status => return, }, }, - RPCError::NegotiationTimeout => PeerAction::HighToleranceError, + RPCError::NegotiationTimeout => PeerAction::LowToleranceError, }; self.report_peer(peer_id, peer_action, ReportSource::RPC);