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: ping multiaddr from peer not previously stored in peerstore #719

Merged

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Jul 27, 2020

When we try to ping using a multiaddr, under the hood we were trying to ping using the peer id but the address was not stored.

I added support for pinging using the multiaddr instead of adding the multiaddr to the addressBook because otherwise the ping could be done to a different multiaddr as a consequence of the parallel dials.

Context: https://discuss.libp2p.io/t/examples-failing-help-new-to-libp2p/620

@vasco-santos vasco-santos force-pushed the fix/ping-multiaddr-from-peer-not-stored-in-peerstore branch from 18690b9 to 53ecde3 Compare July 27, 2020 08:23
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jacobheun jacobheun merged commit 2440c87 into master Jul 27, 2020
@jacobheun jacobheun deleted the fix/ping-multiaddr-from-peer-not-stored-in-peerstore branch July 27, 2020 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants