Method Protocols.Bittorrent.DHT()->Routingtable()->split_bucket()


Method split_bucket

int split_bucket(Bucket b, void|int dont_promote)

Description

Splits the given bucket into two by pushing a new bucket to the end of the bucket array. All nodes in the given bucket are removed and re-added to redistribute them. Candidate nodes are also readded and then a separate promotion pass is done. The promotion pass can be inhibited by setting dont_promote to 1.