JoshuaKissoon / Kademlia

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

TreeSet needs a total ordering, fix: same node multiple times in contact list #15

Open pY4x3g opened 5 years ago

pY4x3g commented 5 years ago

I had multiple times the same node in the contact list, this removes the bug. For clarification see for example:

https://stackoverflow.com/questions/3432772/treeset-contains-problem