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

handleInitTopicLookup may have outdated information #16

Closed
harnen opened this issue Nov 27, 2020 · 5 comments
Closed

handleInitTopicLookup may have outdated information #16

harnen opened this issue Nov 27, 2020 · 5 comments

Comments

@harnen
Copy link
Owner

harnen commented Nov 27, 2020

We do not rebuild a search table if there's already one existing. Shouldn't we always do it, in case the routing information changes (turbulance, new peers etc.)? @srene

https://github.com/harnen/p2p-service-discovery/blob/master/service-discovery/src/main/java/peersim/kademlia/Discv5TicketProtocol.java#L467

@srene
Copy link
Collaborator

srene commented Nov 27, 2020 via email

@harnen
Copy link
Owner Author

harnen commented Nov 27, 2020

The search table is built based on the routing table of the respective. It's possible, that the routing table will be updated between consecutive lookups (i.e., with new peers), but the search table will stay the same.

@srene
Copy link
Collaborator

srene commented Nov 27, 2020 via email

@harnen
Copy link
Owner Author

harnen commented Nov 27, 2020

It might be easier to just remove the if statement, and rebuild it every single time we call handleInitLookup/Regiser. I can to this it that's ok with you. Will be simpler code-wise.

@srene
Copy link
Collaborator

srene commented Nov 27, 2020 via email

@harnen harnen closed this as completed Nov 27, 2020
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

No branches or pull requests

2 participants