JoshuaKissoon / Kademlia

A Java implementation of Kademlia Routing Protocol and DHT
MIT License
193 stars 73 forks source link

Key->Value pairs republishing improvement #6

Closed JoshuaKissoon closed 10 years ago

JoshuaKissoon commented 10 years ago

Update the republishing system to include the improvement mentioned on page 61 of the paper. "First when a node receives a STORE RPC for a given KV pair, it assumes the RPC was also issued to the other K-1 closest nodes, and thus the recipient will not republish the KV pair in the next hour.

We can do this by storing a last-refresh time for each piece of content in our DHT

JoshuaKissoon commented 10 years ago

Got this working!

sudheesh001 commented 10 years ago

@JoshuaKissoon , You could reference the Issue number in your commit message so that the commit can be shown here before the issues are closed. Generally thats the way its done :+1: Great job though.

example commit message : Republishing improvement, fixes #6 that automatically references the commit to this issue #6 that was created. It helps people keep track later on in case they wish to revert.

Just the 2 cents from my side :)