1
0
This commit is contained in:
ThomasV
2025-05-24 17:34:00 +02:00
parent 51ced92f44
commit bd20d6e0af

View File

@@ -3954,12 +3954,13 @@ class Deterministic_Wallet(Abstract_Wallet):
def enable_keystore(self, keystore, is_hardware_keystore: bool, password):
if not is_hardware_keystore and self.storage.is_encrypted_with_user_pw():
keystore.update_password(None, password)
self.db.put('use_encryption', True)
self._update_keystore(keystore)
def disable_keystore(self, keystore):
from .keystore import BIP32_KeyStore
assert not self.has_channels()
if keystore.thread:
if hasattr(keystore, 'thread') and keystore.thread:
keystore.thread.stop()
if self.storage.is_encrypted_with_hw_device():
password = keystore.get_password_for_storage_encryption()