Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix: only dial to unconnected peers #1914

Merged
merged 3 commits into from
Mar 13, 2019
Merged

Conversation

@ghost ghost assigned alanshaw Mar 11, 2019
@ghost ghost added the status/in-progress In progress label Mar 11, 2019
@alanshaw alanshaw mentioned this pull request Mar 12, 2019
50 tasks
Alan Shaw and others added 3 commits March 12, 2019 20:51
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
When we discover a peer, we may not have the latest information from our PeerBook, such as the connected multiaddress. Doing peerBook.put handles merging this information and the new PeerInfo instance is returned. Updating the peerInfo instance, before performing a check, should make sure we have the correct information.

Co-Authored-By: alanshaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw force-pushed the fix/only-dial-unconnected branch from 9abf468 to 540e10c Compare March 12, 2019 20:52
@alanshaw alanshaw marked this pull request as ready for review March 13, 2019 10:55
@alanshaw alanshaw merged commit 1478652 into master Mar 13, 2019
@alanshaw alanshaw deleted the fix/only-dial-unconnected branch March 13, 2019 12:29
@ghost ghost removed the status/in-progress In progress label Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants