Skip to content
This repository was archived by the owner on Oct 25, 2022. It is now read-only.
This repository was archived by the owner on Oct 25, 2022. It is now read-only.

M5 - implement min/max peers for ConnectionManager #137

@noot

Description

@noot

Task summary

we want to keep our peer count between a certain range at all times, this is specified by a minimum and maximum peer count. the ConnectionManager should handle this:

  • when a peer connects, if we are over the max peer count, disconnect from some other peer
  • when a peer disconnects, if we are under the min peer count, connect to some new peer (optionally, discover new peers if needed)

Other information and links

see https://github.com/MinaProtocol/mina/blob/9b763f675be3eaddc96dc53c86317065ee481a10/src/app/libp2p_helper/src/codanet.go#L197

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions