Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network-libp2p: Expose a configuration for the desired number of peers #2038

Merged
merged 2 commits into from
Jan 25, 2024

Commits on Jan 25, 2024

  1. network-libp2p: Expose a configuration for the desired number of peers

    Expose a configuration for the desired number of peers for the
    connection pool to realize when to try to connect to more peers.
    This configuration is exposed in the network and is set in the client
    to be `consensus.min_peers`.
    jsdanielh committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    ed35e8b View commit details
    Browse the repository at this point in the history
  2. network-libp2p: Add some throttling for re-connections

    Make the `ConnectionState` aware of the desired number of connections
    such that when doing `housekeeping` it resets the connections marked
    as down after 1s when the number of connections is below the desired
    number. This changes how eagerly connections are re-tried when the
    number of connected peers is less than the desired value.
    jsdanielh committed Jan 25, 2024
    Configuration menu
    Copy the full SHA
    1d388bc View commit details
    Browse the repository at this point in the history