CympleTech / chamomile

Lightweight p2p library. Support build robust connection on decentralized network.
Apache License 2.0
111 stars 18 forks source link

RFC: DHT update with weight algorithm. #10

Open sunhuachuang opened 3 years ago

sunhuachuang commented 3 years ago

Now Kademlia use binary distance to check if bucket is full, remove far node. In our project, if the node is to as relay, it maybe not update easily, need has a weight. weight maybe include binary distance, relay's info, online time and physical location.