From 6cd5be18ec69a3f5e4dcd7e9ff12fa78eb21f5ef Mon Sep 17 00:00:00 2001 From: JRG Date: Tue, 18 Aug 2026 13:17:36 +0300 Subject: [PATCH] Transport: slice discovery_pr_tags to the end Keep the last element. --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 26698cda..a96b6619 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -758,7 +758,7 @@ class Transport: # Cull the path request tags list if it has reached its max size if len(Transport.discovery_pr_tags) > Transport.max_pr_tags: with Transport.discovery_pr_tags_lock: - Transport.discovery_pr_tags = Transport.discovery_pr_tags[len(Transport.discovery_pr_tags)-Transport.max_pr_tags:len(Transport.discovery_pr_tags)-1] + Transport.discovery_pr_tags = Transport.discovery_pr_tags[len(Transport.discovery_pr_tags)-Transport.max_pr_tags:] if time.time() > Transport.tables_last_culled + Transport.tables_cull_interval: # Remove unneeded path state entries