Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/authority-discovery: Compare PeerIds and not Multihashes #6414

Merged
merged 1 commit into from
Jun 19, 2020

Commits on Jun 18, 2020

  1. client/authority-discovery: Compare PeerIds and not Multihashes

    In order to tell whether an address is the local nodes address the
    authority discovery module previously compared the Multihash within the
    `p2p` Multiaddr protocol.
    
    rust-libp2p recently switched to a new PeerId representation (see [1]).
    Multihashes of the same PeerId in the new and the old format don't
    equal.
    
    Instead of comparing the Multihashes, this patch ensures the module
    compares the PeerIds
    
    [1] libp2p/rust-libp2p#555
    mxinden committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    47c7be1 View commit details
    Browse the repository at this point in the history