Fix wallet creation (LTC) when switching from electrum to RPC mode.

This commit is contained in:
gerlofvanek
2026-01-29 09:35:00 +01:00
parent 162254c537
commit eee45858b5

View File

@@ -3948,9 +3948,9 @@ class BTCInterface(Secp256k1Interface):
if self.useBackend(): if self.useBackend():
return return
if self.coin_type() == Coins.BTC: if self.coin_type() in (Coins.BTC, Coins.LTC):
# Recreate wallet if none found # 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") wallets = self.rpc("listwallets")
if len(wallets) < 1: if len(wallets) < 1:
self._log.info( self._log.info(