ignore nodes with port 0, fixes #93 (presumably)
This commit is contained in:
parent
ec708db607
commit
a083bf40f9
@ -153,6 +153,9 @@ class SybilNode:
|
|||||||
except AssertionError:
|
except AssertionError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Ignore nodes with port 0.
|
||||||
|
nodes = [n for n in nodes if n[1][1] != 0]
|
||||||
|
|
||||||
# Add new found nodes to the routing table, assuring that we have no more than n_max_neighbours in total.
|
# Add new found nodes to the routing table, assuring that we have no more than n_max_neighbours in total.
|
||||||
if len(self._routing_table) < self.__n_max_neighbours:
|
if len(self._routing_table) < self.__n_max_neighbours:
|
||||||
self._routing_table.update(nodes)
|
self._routing_table.update(nodes)
|
||||||
|
Loading…
Reference in New Issue
Block a user