make the definition of routing table depth a bit more reliaxed in the DHT
This commit is contained in:
parent
58b4d85445
commit
0f298dbe88
|
@ -133,7 +133,7 @@ int routing_table::depth() const
|
|||
for (table_t::const_iterator i = m_buckets.begin()
|
||||
, end(m_buckets.end()); i != end; ++i)
|
||||
{
|
||||
if (i->live_nodes.size() < m_bucket_size)
|
||||
if (i->live_nodes.size() < m_bucket_size / 2)
|
||||
break;
|
||||
// this bucket is full
|
||||
++deepest_bucket;
|
||||
|
|
Loading…
Reference in New Issue