harmony-one / harmony

The core protocol of harmony
https://harmony.one
GNU Lesser General Public License v3.0
1.46k stars 286 forks source link

add connection manager high water mark flag to boot node #4710

Closed GheisMohammadi closed 1 month ago

GheisMohammadi commented 1 month ago

Issue

The p2p connection manager has a notion of trimming excess connections when they pass the high watermark. This number should be higher for boot nodes. This PR adds a new flag to p2p host for boot nodes to adjust the high water mark.

The default is set to 900 which is given from libp2p default value for high water mark libp2p constants