-
Notifications
You must be signed in to change notification settings - Fork 186
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
Protect direct and mesh peers in the connection manager #348
Conversation
…ry the connman yet I hate disabling tests, so this should be very temporary.
cc @raulk |
Implementation of protection status queries in libp2p/go-libp2p-core#158 and libp2p/go-libp2p-connmgr#76 |
What are the limits on mesh peers? That is, can I keep grafting to keep getting my connection protected? |
We only accept outbound connections for grafting when over the |
Note that once pruned you can't get regrafted unless the backoff elapses, which is 1minute by default. |
reinstated the tests, using the new connection manager interface. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - nice job getting the test issue sorted
Almost all the services are now starting to protect essential peers, so we should do the same.
This adds protection for direct and mesh peers.
An unfortunate side effect of this change is that we have to (temporarily I hope) disable the tests for the tags, as the connection manager doesn't offer an interface to query protected peers.edit: resolved! the tests are back.