-
Notifications
You must be signed in to change notification settings - Fork 23
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
refactor: Improve Kademlia DHT usage #378
Conversation
Checks process output for predicates in a line
We had a logic error where we would early exit from this function on a matching protocol version. We should exit when the protocol does not match.
Codecov Report
@@ Coverage Diff @@
## main #378 +/- ##
==========================================
+ Coverage 72.14% 72.51% +0.36%
==========================================
Files 69 70 +1
Lines 6889 6945 +56
==========================================
+ Hits 4970 5036 +66
+ Misses 1919 1909 -10
|
We want to check before we add an identified node to external addresses.
We want Kademlia to serve in all cases, including on a local network.
bd66198
to
09a5b7e
Compare
09a5b7e
to
3a12403
Compare
64ffcfa
to
cf417a8
Compare
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.
some minor nits, but great work otherwise @bgins
@@ -0,0 +1,36 @@ | |||
use libp2p::{multiaddr::Protocol, Multiaddr, PeerId}; |
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.
❤️
Description
This PR implements the following:
check_lines_for
utility function to correlate log outputs on a single lineLink to issue
Please add a link to any relevant issues/tickets.
Type of change
Test plan (required)
We are adding tests for existing functionality. In addition, we added tests to check:
node_addresses