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

mocknet: use peer ID in peer address #476

Merged
merged 1 commit into from
Nov 8, 2018
Merged

mocknet: use peer ID in peer address #476

merged 1 commit into from
Nov 8, 2018

Conversation

Stebalien
Copy link
Member

RandLocalTCPAddress is mostly useful when we actually want to listen on a real
address. Unfortunately, when running a bunch of tests, we can actually run
out.

With this change, a collision means we have a duplicate peer ID so yeah...

fixes #473

RandLocalTCPAddress is mostly useful when we *actually* want to listen on a real
address. Unfortunately, when running a bunch of tests, we can actually run
out.

With this change, a collision means we have a duplicate peer ID so yeah...

fixes #473
@ghost ghost assigned Stebalien Nov 7, 2018
@ghost ghost added the status/in-progress In progress label Nov 7, 2018
@Stebalien Stebalien requested a review from ZenGround0 November 7, 2018 23:45
Copy link

@ZenGround0 ZenGround0 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Stebalien Stebalien merged commit da772d1 into master Nov 8, 2018
@Stebalien Stebalien deleted the fix/473 branch November 8, 2018 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net/mock index out of range panic
2 participants