Description
Most or all of the recent lighthouse builds do not seem to respect the peer number target. Looking at https://eth2stats.io/medalla-testnet, there are lots of clients in the 400-500 peer range. At least in my case this results in severely degraded performance of my internet connection.
Version
Regression, at least since 0.3.1
Present Behaviour
The beacon node seems to connect to as many peers as it can find.
Expected Behaviour
Limit connections to roughly the target value (default 50).
Steps to resolve
Run lighthouse on the medalla testnet. Setting an explicit value of --target-peers 30 does not help.