From 1b1a3e60955f8a60abb0df7eb89a64c09bf09ab9 Mon Sep 17 00:00:00 2001 From: surinder singh Date: Thu, 9 Jan 2025 21:43:02 +0530 Subject: [PATCH] skipping load from db if already active account (#137) --- wallet/core/src/wallet/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wallet/core/src/wallet/mod.rs b/wallet/core/src/wallet/mod.rs index ffec7d65c1..77c4870a35 100644 --- a/wallet/core/src/wallet/mod.rs +++ b/wallet/core/src/wallet/mod.rs @@ -442,6 +442,9 @@ impl Wallet { .as_legacy_account()?; legacy_account.clone().start().await?; legacy_account.clear_private_context().await?; + } else if let Some(account) = self.active_accounts().get(account_storage.id()) { + //lets start the account again + account.clone().start().await?; } else { let account = try_load_account(self, account_storage, meta).await?; account.clone().start().await?;