keep peers separate from other nodes in dht

This commit is contained in:
Arceliar 2018-03-10 13:58:48 -06:00
parent e04ab7cfe6
commit 9ce0b7fbea
5 changed files with 72 additions and 34 deletions

View file

@ -154,7 +154,8 @@ func (c *Core) DEBUG_getDHTSize() int {
total := 0
for bidx := 0; bidx < c.dht.nBuckets(); bidx++ {
b := c.dht.getBucket(bidx)
total += len(b.infos)
total += len(b.peers)
total += len(b.other)
}
return total
}