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

Persisting a unique DHT for different lookup and updating the routing table #38

Closed
Ayms opened this issue Sep 10, 2014 · 1 comment
Closed

Comments

@Ayms
Copy link

Ayms commented Sep 10, 2014

Am I reading the code wrongly or it is not possible right now to create once a dht and persist it for different lookup, as well as updating the routing table continuously (and testing the nodes)? (as far as I see the routing table is supposed to be recreated for each lookup)

I saw #16 but apparently the fix is to bootstrap the dht at creation.

Is it on purpose, or in the TODO list?

@feross
Copy link
Member

feross commented Sep 17, 2014

The routing table is persisted between lookups. As new nodes are discovered, they are added to the routing table.

However, to do a lookup an additional, temporary routing table is created and nodes are added to it until no closer nodes can be found. This is just an implementation detail though.

I believe this issue can be closed because the module is already working as you want it to.

@feross feross closed this as completed Sep 17, 2014
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