ethstorage / es-node

Golang implementation of the EthStorage node.
Other
1.15k stars 77 forks source link

Remove libp2p connection manager when create host #276

Open ping-ke opened 6 months ago

ping-ke commented 6 months ago

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.