This commit is contained in:
Mark Qvist
2026-07-10 01:15:57 +02:00
parent 72db6e0ef2
commit a0f0f31807
4 changed files with 121 additions and 136 deletions
+3 -1
View File
@@ -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