filter out the bad node in results instead of punishing the node we trusted to contact
This commit is contained in:
parent
91d4bf3cd9
commit
cfe8e17223
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class _IterativeFind(object):
|
||||||
if (contactTriple[1], contactTriple[2]) in ((c.address, c.port) for c in self.already_contacted):
|
if (contactTriple[1], contactTriple[2]) in ((c.address, c.port) for c in self.already_contacted):
|
||||||
continue
|
continue
|
||||||
elif self.node.contact_manager.is_ignored((contactTriple[1], contactTriple[2])):
|
elif self.node.contact_manager.is_ignored((contactTriple[1], contactTriple[2])):
|
||||||
raise ValueError("contact is ignored")
|
continue
|
||||||
else:
|
else:
|
||||||
found_contact = self.node.contact_manager.make_contact(contactTriple[0], contactTriple[1],
|
found_contact = self.node.contact_manager.make_contact(contactTriple[0], contactTriple[1],
|
||||||
contactTriple[2], self.node._protocol)
|
contactTriple[2], self.node._protocol)
|
||||||
|
|
Loading…
Add table
Reference in a new issue