lighthouse/beacon_node/eth2_libp2p
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
..
src Increase connection limits and allow priority connections (#2604) 2021-09-21 07:45:13 +00:00
tests Subscribe to altair gossip topics 2 slots before fork (#2532) 2021-09-17 01:11:16 +00:00
Cargo.toml Experimental discovery (#2577) 2021-09-16 04:45:05 +00:00