lighthouse/beacon_node/eth2_libp2p/src
Age Manning 280e4fe23d Increase connection limits and allow priority connections (#2604)
In previous network updates we have made our libp2p connections more lean by limiting the maximum number of connections a lighthouse node will accept before libp2p rejects new connections. 

However, we still maintain the logic that at maximum connections, we try to dial extra peers if they are needed by a validator client to publish messages on a specific subnet. The dials typically result in failures due the libp2p connection limits. 

This PR adds an extra factor, `PRIORITY_PEER_EXCESS` which sets aside a new allocation of peers we are able to dial in case we need these peers for the VC client.  This allocation sits along side the excess peer (which allows extra incoming peers on top of our target peer limit). 

The drawback here, is that libp2p now allows extra peers to connect to us (beyond the standard peer limit) which the peer manager should subsequently reject.
2021-09-21 07:45:13 +00:00
..
behaviour Subscribe to altair gossip topics 2 slots before fork (#2532) 2021-09-17 01:11:16 +00:00
discovery Refactor discovery queries (#2518) 2021-08-24 00:12:13 +00:00
peer_manager Increase connection limits and allow priority connections (#2604) 2021-09-21 07:45:13 +00:00
rpc Improved handling of IP Banning (#2530) 2021-09-17 04:02:31 +00:00
types Altair networking (#2300) 2021-08-04 01:44:57 +00:00
config.rs Shutdown after sync (#2519) 2021-08-30 13:46:13 +00:00
lib.rs Altair networking (#2300) 2021-08-04 01:44:57 +00:00
metrics.rs More metrics + RPC tweaks (#2041) 2020-12-08 03:55:50 +00:00
service.rs Increase connection limits and allow priority connections (#2604) 2021-09-21 07:45:13 +00:00