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: try to re-add existing peers when the routing table is empty #420

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

Stebalien
Copy link
Member

Otherwise, we could decide to not add a peer, disconnect from most peers, and
be unable to query the DHT even if we're technically connected to a peer in the
DHT.

This is a small subset of active bootstrapping.

Otherwise, we could decide to _not_ add a peer, disconnect from most peers, and
be unable to query the DHT even if we're technically connected to a peer in the
DHT.
}

// we should now _re-add_ some peers to the routing table
for i := 0; i < 100; i++ {
Copy link
Member

Choose a reason for hiding this comment

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

Timing conditions in tests make me sad :-( But we don't have a better way right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet, unfortunately.

@Stebalien Stebalien merged commit 323ee8e into master Dec 11, 2019
@Stebalien Stebalien deleted the fix/add-when-empty branch December 11, 2019 18:20
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