mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
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.
This commit is contained in:
@@ -480,7 +480,7 @@ impl<TSpec: EthSpec> PeerManager<TSpec> {
|
|||||||
Protocol::Status => return,
|
Protocol::Status => return,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
RPCError::NegotiationTimeout => PeerAction::HighToleranceError,
|
RPCError::NegotiationTimeout => PeerAction::LowToleranceError,
|
||||||
};
|
};
|
||||||
|
|
||||||
self.report_peer(peer_id, peer_action, ReportSource::RPC);
|
self.report_peer(peer_id, peer_action, ReportSource::RPC);
|
||||||
|
|||||||
Reference in New Issue
Block a user