-
Notifications
You must be signed in to change notification settings - Fork 233
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
Correctly handle the last bucket when refreshing the routing table #406
Comments
Let me see if I understand this correctly. Say on peer The ideal behaviour would be to track refresh times for CPLs & not for buckets. In the above case, when we lookup @Stebalien Please let me know your thoughts & I'll come up with a PR. |
Exactly! And yeah, given that our max prefix length is 16, we only really need to keep track of the first 16 buckers. We can't query past that anyways. |
@Stebalien One concern here. When do we start tracking a particular Cpl ?
I prefer 1 for it's simplicity & also because it ensures we have peers with varied Cpl's/XOR-distance-ranges right from the get go. |
I think 2. Remember, we query for ourself first. That should let us find our closest peers. Once we know that, we should be able to calculate the highest CPL. |
@Stebalien This issue can be closed. |
Thanks! |
As far as I know, we need to track last update times for all real buckets that get included in the last bucket. That way, we can properly refresh them.
The text was updated successfully, but these errors were encountered: