mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03: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:
parent
a9f72a6ee1
commit
03a88fe304
7 changed files with 182 additions and 510 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue