mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
wallet: minor clean-up
This commit is contained in:
parent
c0b5ebcc5d
commit
cfbd83c432
1 changed files with 9 additions and 1 deletions
|
@ -219,6 +219,9 @@ class Abstract_Wallet(AddressSynchronizer):
|
|||
max_change_outputs = 3
|
||||
gap_limit_for_change = 6
|
||||
|
||||
txin_type: str
|
||||
wallet_type: str
|
||||
|
||||
def __init__(self, storage: WalletStorage, *, config: SimpleConfig):
|
||||
if not storage.is_ready_to_be_used_by_wallet():
|
||||
raise Exception("storage not ready to be used by Abstract_Wallet")
|
||||
|
@ -1757,6 +1760,12 @@ class Abstract_Wallet(AddressSynchronizer):
|
|||
def save_keystore(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
def has_seed(self) -> bool:
|
||||
raise NotImplementedError()
|
||||
|
||||
def is_beyond_limit(self, address: str) -> bool:
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class Simple_Wallet(Abstract_Wallet):
|
||||
# wallet with a single keystore
|
||||
|
@ -2172,7 +2181,6 @@ class Standard_Wallet(Simple_Deterministic_Wallet):
|
|||
|
||||
class Multisig_Wallet(Deterministic_Wallet):
|
||||
# generic m of n
|
||||
gap_limit = 20
|
||||
|
||||
def __init__(self, storage, *, config):
|
||||
self.wallet_type = storage.get('wallet_type')
|
||||
|
|
Loading…
Add table
Reference in a new issue