mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-02 04:46:38 -05:00
Cleanup
This commit is contained in:
parent
72db6e0ef2
commit
a0f0f31807
4 changed files with 121 additions and 136 deletions
|
|
@ -218,7 +218,9 @@ class Interface:
|
|||
return time.time()-self.created
|
||||
|
||||
def hold_announce(self, announce_packet):
|
||||
if announce_packet.destination_hash in self.held_announces:
|
||||
if announce_packet.hops >= RNS.Transport.PATHFINDER_M-1:
|
||||
return
|
||||
elif announce_packet.destination_hash in self.held_announces:
|
||||
self.held_announces[announce_packet.destination_hash] = announce_packet
|
||||
elif not len(self.held_announces) >= self.ic_max_held_announces:
|
||||
self.held_announces[announce_packet.destination_hash] = announce_packet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue