bottoming out is now warning and no results for peer search

This commit is contained in:
Victor Shyba 2022-02-08 20:00:29 -03:00 committed by Victor Shyba
parent c14915df29
commit 6ff867ef55

View file

@ -360,8 +360,8 @@ class IterativeNodeFinder(IterativeFinder):
if self.are_k_closest_peers_ready: if self.are_k_closest_peers_ready:
self.put_result(self.active.keys(), True) self.put_result(self.active.keys(), True)
elif self.bottom_out_count >= self.bottom_out_limit or self.iteration_count >= self.bottom_out_limit: elif self.bottom_out_count >= self.bottom_out_limit or self.iteration_count >= self.bottom_out_limit:
log.debug("peer search bottomed out.") log.warning("peer search bottomed out.")
self.put_result(self.active.keys(), True) self.put_result([], True)
class IterativeValueFinder(IterativeFinder): class IterativeValueFinder(IterativeFinder):