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

Full support for multiple connections per peer in libp2p-swarm. #1519

Merged
merged 14 commits into from
Mar 31, 2020

Commits on Mar 25, 2020

  1. [libp2p-swarm] Make the multiple connections per peer first-class.

    This commit makes the notion of multiple connections per peer
    first-class in the API of libp2p-swarm, introducing the new
    callbacks `inject_connection_established` and
    `inject_connection_closed`. The `endpoint` parameter from
    `inject_connected` and `inject_disconnected` is removed,
    since the first connection to open may not be the last
    connection to close, i.e. it cannot be guaranteed,
    as was previously the case, that the endpoints passed
    to these callbacks match up.
    Roman S. Borschel committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    b28619e View commit details
    Browse the repository at this point in the history
  2. Have identify track all addresses.

    So that identify requests can be answered with the correct
    observed address of the connection on which the request
    arrives.
    Roman S. Borschel committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    b17cb08 View commit details
    Browse the repository at this point in the history
  3. Cleanup

    Roman S. Borschel committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    9e0ee18 View commit details
    Browse the repository at this point in the history
  4. Cleanup

    Roman S. Borschel committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    04be62a View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Improve the Peer state API.

    Roman S. Borschel committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    8f76291 View commit details
    Browse the repository at this point in the history
  2. Remove connection ID from SwarmEvent::Dialing.

    Roman S. Borschel committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    4fe71ed View commit details
    Browse the repository at this point in the history
  3. Mark DialPeerCondition non-exhaustive.

    Roman S. Borschel committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    5c01698 View commit details
    Browse the repository at this point in the history
  4. Re-encapsulate NetworkConfig.

    To retain the possibility of not re-exposing all
    network configuration choices, thereby providing
    a more convenient API on the \`SwarmBuilder\`.
    Roman S. Borschel committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    f90f548 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1f4b262 View commit details
    Browse the repository at this point in the history
  6. Rework Swarm::dial API.

    Roman S. Borschel committed Mar 30, 2020
    Configuration menu
    Copy the full SHA
    e047ff9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. Update CHANGELOG.

    Roman S. Borschel committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    d4feb79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    870f8ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1ea8fae View commit details
    Browse the repository at this point in the history
  4. Doc formatting tweaks.

    Roman S. Borschel committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    ae15dd4 View commit details
    Browse the repository at this point in the history