From ba60aeeebc1cf8e91d4127345e95091907c96d7b Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 18 Jul 2022 09:23:26 -0400 Subject: [PATCH] migrate certificates after importing new account --- lbry/extras/daemon/daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index b2dfc639f..176f04e43 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -1987,6 +1987,8 @@ class Daemon(metaclass=JSONRPCServerType): wallet_changed = False if data is not None: 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 blocking: await asyncio.wait([