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

fix: make local peer id optional #440

Merged
merged 2 commits into from
Aug 13, 2024
Merged

Commits on Aug 9, 2024

  1. fix: make local peer id optional

    `libp2p@2.x.x` will remove the `localPeer` argument from the
    `secureInbound` and `secureOutbound` methods of the
    `ConnectionEncrypter` interface.
    
    Unfortunately the `js-libp2p` monorepo has a depdendency on this
    module so the change cannot be released until this module is
    compatible... with the unreleased change.
    
    This PR tests the first argument to `secureInbound` and
    `secureOutbound` to ensure that it is actually a `PeerId`. If
    not it shuffles all the arguments along by one place.
    
    This PR can be reverted and the first argument removed once
    `libp2p@2.x.x` is released.
    achingbrain committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    fed9eec View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    dd954a6 View commit details
    Browse the repository at this point in the history