From eee45858b5054e076b5fd302f09b6081a8bb0d26 Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Thu, 29 Jan 2026 09:35:00 +0100 Subject: [PATCH] Fix wallet creation (LTC) when switching from electrum to RPC mode. --- basicswap/interface/btc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basicswap/interface/btc.py b/basicswap/interface/btc.py index 1efeed4..c585ddd 100644 --- a/basicswap/interface/btc.py +++ b/basicswap/interface/btc.py @@ -3948,9 +3948,9 @@ class BTCInterface(Secp256k1Interface): if self.useBackend(): return - if self.coin_type() == Coins.BTC: + if self.coin_type() in (Coins.BTC, Coins.LTC): # Recreate wallet if none found - # Required when encrypting an existing btc wallet, workaround is to delete the btc wallet and recreate + # Required when encrypting an existing btc/ltc wallet, or switching from electrum to rpc mode. Workaround is to delete the btc/ltc wallet and recreate. wallets = self.rpc("listwallets") if len(wallets) < 1: self._log.info(