explicit type for imported wallets. fixes #698
This commit is contained in:
parent
217ba7c80c
commit
35c270e075
|
@ -1086,6 +1086,7 @@ class Imported_Wallet(Abstract_Wallet):
|
||||||
a = self.accounts.get(IMPORTED_ACCOUNT)
|
a = self.accounts.get(IMPORTED_ACCOUNT)
|
||||||
if not a:
|
if not a:
|
||||||
self.accounts[IMPORTED_ACCOUNT] = ImportedAccount({'imported':{}})
|
self.accounts[IMPORTED_ACCOUNT] = ImportedAccount({'imported':{}})
|
||||||
|
self.storage.put('wallet_type', 'imported', True)
|
||||||
|
|
||||||
|
|
||||||
def is_watching_only(self):
|
def is_watching_only(self):
|
||||||
|
@ -1634,8 +1635,7 @@ class Wallet(object):
|
||||||
if storage.get('wallet_type') == '2of3':
|
if storage.get('wallet_type') == '2of3':
|
||||||
return Wallet_2of3(storage)
|
return Wallet_2of3(storage)
|
||||||
|
|
||||||
if storage.file_exists and not storage.get('seed'):
|
if storage.get('wallet_type') == 'imported':
|
||||||
# wallet made of imported keys
|
|
||||||
return Imported_Wallet(storage)
|
return Imported_Wallet(storage)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue