mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
test wallet type in restore hook
This commit is contained in:
parent
a3790372d8
commit
cbeb8abe4a
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ class Plugin(BasePlugin):
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def installwizard_restore(self, wizard, storage):
|
def installwizard_restore(self, wizard, storage):
|
||||||
|
if storage.get('wallet_type') != 'btchip':
|
||||||
|
return
|
||||||
wallet = BTChipWallet(storage)
|
wallet = BTChipWallet(storage)
|
||||||
try:
|
try:
|
||||||
wallet.create_main_account(None)
|
wallet.create_main_account(None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue