Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Added search for a specific peer given the address #580
Let me know if there is a better way to approach this. I initially had it setup as having a target address and a specific address but switched it just having a flag being set to say whether they want a list of neighbors to the target or the BoundPeer for the target address.
@@ Coverage Diff @@ ## master #580 +/- ## ========================================== - Coverage 86.75% 86.63% -0.12% ========================================== Files 223 223 Lines 18916 19077 +161 ========================================== + Hits 16410 16528 +118 - Misses 1341 1370 +29 - Partials 1165 1179 +14
limebell left a comment
Thanks for your contribution! There are some points that you should be aware of to deal with this issue.
Please take a look at https://en.wikipedia.org/wiki/Kademlia for more information.
Builds seem to fail due to file length of
@RozzaysRed Could you increase the value of
Approach is similar to how FindPeerAsync handles requests. Grab all the neighbors in the routing table, make sure they are still on the network. Iterate through neighbors to see if they have a matching address. If not, send another round of findneighbor messages Resolving Requested Changes