wallet: enable/disable_keystore: rm functionality from 2fa wallets

was already not working, but does not even really make sense without larger changes
This commit is contained in:
SomberNight
2025-08-15 16:18:13 +00:00
parent 0fea61ac3a
commit 0ceb54b61f
4 changed files with 51 additions and 12 deletions

View File

@@ -45,6 +45,7 @@ from electrum.plugin import BasePlugin, hook
from electrum.util import NotEnoughFunds, UserFacingException, error_text_str_to_safe_str
from electrum.network import Network
from electrum.logging import Logger
from electrum.keystore import KeyStore
if TYPE_CHECKING:
from electrum.wizard import NewWalletWizard
@@ -382,6 +383,15 @@ class Wallet_2fa(Multisig_Wallet):
def is_billing_address(self, addr: str) -> bool:
return addr in self._billing_addresses_set
def can_enable_disable_keystore(self, ks: KeyStore) -> bool:
return False
def enable_keystore(self, keystore, is_hardware_keystore, password):
raise Exception("2fa wallet cannot enable keystore")
def disable_keystore(self, keystore):
raise Exception("2fa wallet cannot disable keystore")
# Utility functions