forked from LBRYCommunity/lbry-sdk
only use seeds in iterative bootstrap if no contacts are known yet
This commit is contained in:
parent
16cb6d8657
commit
bc0da5e2d1
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class Node(MockKademliaHelper):
|
|||
defer.returnValue(None)
|
||||
else:
|
||||
# find the closest peers to us
|
||||
closest = yield self._iterativeFind(self.node_id, shortlist)
|
||||
closest = yield self._iterativeFind(self.node_id, shortlist if not self.contacts else None)
|
||||
yield _ping_contacts(closest)
|
||||
# query random hashes in our bucket key ranges to fill or split them
|
||||
random_ids_in_range = self._routingTable.getRefreshList(force=True)
|
||||
|
|
Loading…
Reference in a new issue