bump bottom out limit of peer search so people can use 100 concurrent announcers

This commit is contained in:
Victor Shyba 2022-02-07 23:58:28 -03:00 committed by Victor Shyba
parent 9a79b33664
commit 0b2b10f759

View file

@ -216,7 +216,7 @@ class Node:
key, bottom_out_limit, max_results, None, shortlist) key, bottom_out_limit, max_results, None, shortlist)
async def peer_search(self, node_id: bytes, count=constants.K, max_results=constants.K * 2, async def peer_search(self, node_id: bytes, count=constants.K, max_results=constants.K * 2,
bottom_out_limit=20, shortlist: typing.Optional[typing.List['KademliaPeer']] = None bottom_out_limit=60, shortlist: typing.Optional[typing.List['KademliaPeer']] = None
) -> typing.List['KademliaPeer']: ) -> typing.List['KademliaPeer']:
peers = [] peers = []
async for iteration_peers in self.get_iterative_node_finder( async for iteration_peers in self.get_iterative_node_finder(