From bdfad57d3f4eafcbf0275a66d7b001bf432e76c9 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 7 May 2026 18:40:45 +0200 Subject: [PATCH] Added identity retain on use to rnid --- RNS/Utilities/rnid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RNS/Utilities/rnid.py b/RNS/Utilities/rnid.py index 99cd9e90..4e1deb25 100644 --- a/RNS/Utilities/rnid.py +++ b/RNS/Utilities/rnid.py @@ -256,6 +256,7 @@ def get_operating_identity(args, allow_none=False, no_cache=False): if ident_str == hash_str: print(f"Recalled Identity {ident_str}") else: print(f"Recalled Identity {ident_str} for destination {hash_str}") + if identity and identity.hash: reticulum._retain_identity(identity.hash) except Exception as e: print(f"Invalid hexadecimal hash provided: {e}"); exit(R_INVALID_IDENTITY)