mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-08 18:37:23 +02:00
Fix wallet creation (LTC) when switching from electrum to RPC mode.
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user