mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 14:06:28 +00:00
Try using a chord-like DHT instead of a kad-like one, work in progress, but it compiles at least
This commit is contained in:
@ -230,11 +230,13 @@ func DEBUG_wire_encode_coords(coords []byte) []byte {
|
||||
|
||||
func (c *Core) DEBUG_getDHTSize() int {
|
||||
total := 0
|
||||
/* FIXME
|
||||
for bidx := 0; bidx < c.dht.nBuckets(); bidx++ {
|
||||
b := c.dht.getBucket(bidx)
|
||||
total += len(b.peers)
|
||||
total += len(b.other)
|
||||
}
|
||||
*/
|
||||
return total
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user