invalidate descriptor cache when changing secret

This commit is contained in:
scgbckbone 2025-10-09 19:56:26 +02:00
parent a1342ac3bb
commit eb55a6dc11

View File

@ -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)