Currently, we use libp2p connection manager and maxPeers to control the peer count of es-node, but these two are duplicated, we can use one of them to control the peer count (like prysm used max Peers, and op used connection manager)
Implementation
investigate prysm, remove libp2p connection manager and use max peers to control the peer count, as we have our logic to decide whether we need the new peer or not.
Rationale
Currently, we use libp2p connection manager and maxPeers to control the peer count of es-node, but these two are duplicated, we can use one of them to control the peer count (like prysm used max Peers, and op used connection manager)
Implementation
investigate prysm, remove libp2p connection manager and use max peers to control the peer count, as we have our logic to decide whether we need the new peer or not.