activehazelnuts -> active_hazelnuts

This commit is contained in:
2021-01-05 19:19:43 +01:00
parent f85b088367
commit 56020390b2
2 changed files with 16 additions and 16 deletions

View File

@ -226,8 +226,8 @@ class NeighbourTLV(TLV):
# This case should never happen (and in our protocol it is not possible),
# but we include this test as a security measure.
return
if not (str(self.ip_address), self.port) in squirrel.activehazelnuts \
and not (str(self.ip_address), self.port) in squirrel.potentialhazelnuts:
if not (str(self.ip_address), self.port) in squirrel.active_hazelnuts \
and not (str(self.ip_address), self.port) in squirrel.potential_hazelnuts:
hazelnut = squirrel.new_hazel(str(self.ip_address), self.port)
hazelnut.potential = True
squirrel.update_hazelnut_table(hazelnut)