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

p2p: return error when attempting to connect to a bad peer #7885

Merged
merged 2 commits into from
Nov 21, 2020

Conversation

prestonvanloon
Copy link
Member

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Callers of this function expect that a nil error means a successful connection to a peer. However, bad peers were turning a nil error.

Which issues(s) does this PR fix?

Fixes #7424

Other notes for review

@prestonvanloon prestonvanloon requested a review from a team as a code owner November 21, 2020 18:39
@prestonvanloon prestonvanloon added the Ready For Review A pull request ready for code review label Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FindPeersWithSubnet does not handle connectWithPeer bad-peer case
3 participants