Ensure to prune to target peers #5198
Labels
prio-high
Resolve issues as soon as possible.
scope-networking
All issues related to networking, gossip, and libp2p.
Describe the bug
In rare case where all peers subscribe to at least 1 subnet, but they are not grouped to 1 subnet, and all performs well, lodestar doesn't prune peers to target peers. When that happens, we see peers stay >= 55 peers like below:
this does not allow new connections (implemented by libp2p). in worse case scenario, we don't have enough subnet peers (from same node like the above)
and it causes a lot of missed attestations (since this node has 1k validators on goerli and it's supposed to subscribe to all subnets)
Expected behavior
Make sure we always prune to target peers (50) to allow more better peers to come, like below:
The text was updated successfully, but these errors were encountered: