From 34bb4ac88c8cf3a7b9ab2edc039213b878427eb8 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 29 Oct 2026 21:37:34 +0100 Subject: [PATCH] Cleanup --- RNS/Link.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Link.py b/RNS/Link.py index 407fe3cc..ada9f4ce 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -308,7 +308,8 @@ class Link: self.expected_hops = RNS.Transport.hops_to(self.destination.hash) self.establishment_timeout = RNS.Reticulum.get_instance().get_first_hop_timeout(self.destination.hash) self.establishment_timeout += Link.ESTABLISHMENT_TIMEOUT_PER_HOP * max(1, RNS.Transport.hops_to(self.destination.hash)) - self.stamp_cost = RNS.Identity.recall_link_cost(self.destination.hash) or RNS.Transport.LR_COST if RNS.Transport.ALWAYS_STAMP_LRS else None + self.stamp_cost = RNS.Identity.recall_link_cost(self.destination.hash) + if self.stamp_cost == None and RNS.Transport.ALWAYS_STAMP_LRS: self.stamp_cost = RNS.Transport.LR_COST if self.stamp_cost and RNS.Transport.STAMP_LRS: self.__defer_keys = True else: