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: use known peers to ensure data availability when updating network #91

Merged
merged 2 commits into from
Mar 17, 2020

Conversation

moliva
Copy link
Contributor

@moliva moliva commented Mar 16, 2020

Making sure to use known peer data when updating network and choosing candidates to disconnect from.
In the existing codebase, the chosen peer might not be properly initialized (with known peer data), thus resulting in a null reference and an exception afterwards when trying to sort them out.

@moliva moliva requested a review from pablitar March 16, 2020 21:27
@moliva moliva self-assigned this Mar 16, 2020
Copy link
Contributor

@pablitar pablitar left a comment

Choose a reason for hiding this comment

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

LGTM!

@moliva moliva merged commit 35c1091 into master Mar 17, 2020
@moliva moliva deleted the fix/disconnect-peer branch March 17, 2020 17:05
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