lighthouse/beacon_node/eth2_libp2p
Age Manning 04e4389efe Patch gossipsub (#1490)
## Issue Addressed

Some nodes not following head, high CPU usage and HTTP API delays

## Proposed Changes

Patches gossipsub. Gossipsub was using an `lru_time_cache` to check for duplicates. This contained an `O(N)` lookup for every gossipsub message to update the time cache. This was causing high cpu usage and blocking network threads. 

This PR introduces a custom cache without `O(N)` inserts. 

This also adds built in safety mechanisms to prevent gossipsub from excessively retrying connections upon failure. A maximum limit is set after which we disconnect from the node from too many failed substream connections.
2020-08-08 08:09:04 +00:00
..
src Disconnect peers (#1484) 2020-08-08 06:08:44 +00:00
tests Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
Cargo.toml Patch gossipsub (#1490) 2020-08-08 08:09:04 +00:00