Browse Source

wallet: minor clean-up

hard-fail-on-bad-server-string
SomberNight 5 years ago
parent
commit
cfbd83c432
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 10
      electrum/wallet.py

10
electrum/wallet.py

@ -219,6 +219,9 @@ class Abstract_Wallet(AddressSynchronizer):
max_change_outputs = 3 max_change_outputs = 3
gap_limit_for_change = 6 gap_limit_for_change = 6
txin_type: str
wallet_type: str
def __init__(self, storage: WalletStorage, *, config: SimpleConfig): def __init__(self, storage: WalletStorage, *, config: SimpleConfig):
if not storage.is_ready_to_be_used_by_wallet(): if not storage.is_ready_to_be_used_by_wallet():
raise Exception("storage not ready to be used by Abstract_Wallet") raise Exception("storage not ready to be used by Abstract_Wallet")
@ -1757,6 +1760,12 @@ class Abstract_Wallet(AddressSynchronizer):
def save_keystore(self): def save_keystore(self):
raise NotImplementedError() raise NotImplementedError()
def has_seed(self) -> bool:
raise NotImplementedError()
def is_beyond_limit(self, address: str) -> bool:
raise NotImplementedError()
class Simple_Wallet(Abstract_Wallet): class Simple_Wallet(Abstract_Wallet):
# wallet with a single keystore # wallet with a single keystore
@ -2172,7 +2181,6 @@ class Standard_Wallet(Simple_Deterministic_Wallet):
class Multisig_Wallet(Deterministic_Wallet): class Multisig_Wallet(Deterministic_Wallet):
# generic m of n # generic m of n
gap_limit = 20
def __init__(self, storage, *, config): def __init__(self, storage, *, config):
self.wallet_type = storage.get('wallet_type') self.wallet_type = storage.get('wallet_type')

Loading…
Cancel
Save