lighthouse/beacon_node
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
..
beacon_chain Push naive attestations into op pool (#1466) 2020-08-06 07:26:46 +00:00
client Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
eth1 Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
eth2_libp2p Patch gossipsub (#1490) 2020-08-08 08:09:04 +00:00
genesis Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
network Remove block clone (#1448) 2020-08-06 04:29:17 +00:00
operation_pool Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
rest_api Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
src Lighthouse v0.2.0 (Medalla) (#1452) 2020-08-04 07:44:53 +00:00
store Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
tests Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
timer Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
websocket_server Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
Cargo.toml Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00