forked from LBRYCommunity/lbry-sdk
populate buckets when joining the dht
This commit is contained in:
parent
3a27a4509a
commit
6dbb00d8d5
1 changed files with 4 additions and 4 deletions
|
@ -216,10 +216,10 @@ class Node(MockKademliaHelper):
|
||||||
# find the closest peers to us
|
# find the closest peers to us
|
||||||
closest = yield self._iterativeFind(self.node_id, shortlist if not self.contacts else None)
|
closest = yield self._iterativeFind(self.node_id, shortlist if not self.contacts else None)
|
||||||
yield _ping_contacts(closest)
|
yield _ping_contacts(closest)
|
||||||
# # query random hashes in our bucket key ranges to fill or split them
|
# query random hashes in our bucket key ranges to fill or split them
|
||||||
# random_ids_in_range = self._routingTable.getRefreshList()
|
random_ids_in_range = self._routingTable.getRefreshList()
|
||||||
# while random_ids_in_range:
|
while random_ids_in_range:
|
||||||
# yield self.iterativeFindNode(random_ids_in_range.pop())
|
yield self.iterativeFindNode(random_ids_in_range.pop())
|
||||||
defer.returnValue(None)
|
defer.returnValue(None)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue