migrate certificates after importing new account

This commit is contained in:
Lex Berezhny 2022-07-18 09:23:26 -04:00
parent dc427ecf6c
commit ba60aeeebc

View file

@ -1987,6 +1987,8 @@ class Daemon(metaclass=JSONRPCServerType):
wallet_changed = False wallet_changed = False
if data is not None: if data is not None:
added_accounts = wallet.merge(self.wallet_manager, password, data) added_accounts = wallet.merge(self.wallet_manager, password, data)
for new_account in added_accounts:
await new_account.maybe_migrate_certificates()
if added_accounts and self.ledger.network.is_connected: if added_accounts and self.ledger.network.is_connected:
if blocking: if blocking:
await asyncio.wait([ await asyncio.wait([