mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
can_import
This commit is contained in:
parent
78a748149c
commit
2642b7e126
1 changed files with 6 additions and 0 deletions
|
@ -1070,6 +1070,9 @@ class Abstract_Wallet:
|
|||
d[k] = v.dump()
|
||||
self.storage.put('accounts', d, True)
|
||||
|
||||
def can_import(self):
|
||||
return not self.is_watching_only()
|
||||
|
||||
|
||||
|
||||
class Imported_Wallet(Abstract_Wallet):
|
||||
|
@ -1458,6 +1461,9 @@ class Wallet_2of2(NewWallet):
|
|||
def can_create_accounts(self):
|
||||
return False
|
||||
|
||||
def can_import(self):
|
||||
return False
|
||||
|
||||
def create_account(self):
|
||||
xpub1 = self.master_public_keys.get("m/")
|
||||
xpub2 = self.master_public_keys.get("cold/")
|
||||
|
|
Loading…
Add table
Reference in a new issue