From eb55a6dc11db58c2d8cf9be4c4976cf37addbb96 Mon Sep 17 00:00:00 2001 From: scgbckbone Date: Thu, 9 Oct 2025 19:56:26 +0200 Subject: [PATCH] invalidate descriptor cache when changing secret --- shared/pincodes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shared/pincodes.py b/shared/pincodes.py index d2cea54f..bf2c9665 100644 --- a/shared/pincodes.py +++ b/shared/pincodes.py @@ -410,9 +410,13 @@ class PinAttempt: # Main secret has changed: reset the settings+their key, # and capture xfp/xpub # if None is provided as raw_secret -> restore to main seed + import glob from glob import settings, dis stash.SensitiveValues.clear_cache() + # invalidate descriptor cache - upon new secret load + glob.DESC_CACHE = {} + bypass_tmp = False stash.bip39_passphrase = bool(bip39pw)