mirror of
https://github.com/basicswap/basicswap.git
synced 2025-04-10 08:17:46 +00:00
Fix checkWallets regression, must rename watchonly wallet also.
This commit is contained in:
parent
71fd3d10aa
commit
d95f3ccd24
1 changed files with 6 additions and 1 deletions
|
@ -313,11 +313,14 @@ class BTCInterface(Secp256k1Interface):
|
|||
|
||||
# Wallet name is "" for some LTC and PART installs on older cores
|
||||
if self._rpc_wallet not in wallets and len(wallets) > 0:
|
||||
self._log.debug(f"Changing {self.ticker()} wallet name.")
|
||||
self._log.warning(f"Changing {self.ticker()} wallet name.")
|
||||
for wallet_name in wallets:
|
||||
# Skip over other expected wallets
|
||||
if wallet_name in ("mweb",):
|
||||
continue
|
||||
|
||||
change_watchonly_wallet: bool = self._rpc_wallet_watch == self._rpc_wallet
|
||||
|
||||
self._rpc_wallet = wallet_name
|
||||
self._log.info(
|
||||
f"Switched {self.ticker()} wallet name to {self._rpc_wallet}."
|
||||
|
@ -328,6 +331,8 @@ class BTCInterface(Secp256k1Interface):
|
|||
host=self._rpc_host,
|
||||
wallet=self._rpc_wallet,
|
||||
)
|
||||
if change_watchonly_wallet:
|
||||
self.rpc_wallet_watch = self.rpc_wallet
|
||||
break
|
||||
|
||||
return len(wallets)
|
||||
|
|
Loading…
Reference in a new issue