UrDHT / PyUrDHT

Python reference implementation
11 stars 3 forks source link

Ensure that locPeerDict is populated before seek occurs #77

Closed abrosen closed 8 years ago

abrosen commented 8 years ago

In Logic, is it possible that locPeerDict is unpopulated when a seek hits the node?

locPeerDict is populated during maintenance

abrosen commented 8 years ago

I'm writing chord to avoid using this Dict

BrendanBenshoof commented 8 years ago

yeah, we should pre-populate it on load with the bootstraps.

The reason UrDHT need(ed) it, was that the spacemath file only handled locations, not peerinfo So I needed to be able to feed queries to spacemath, get a location back as an answer, then map teh location back to the peerinfo.

We would need to re-write spacemath to change how that worked.