Merge pull request #296 from nahuhh/xmr_open

xmr: detect corrupt wallets
This commit is contained in:
tecnovert
2025-04-14 17:18:17 +00:00
committed by GitHub
4 changed files with 130 additions and 11 deletions

View File

@@ -1067,7 +1067,9 @@ class BasicSwap(BaseApp):
elif c in (Coins.XMR, Coins.WOW):
try:
ci.ensureWalletExists()
except Exception as e: # noqa: F841
except Exception as e:
if "invalid signature" in str(e): # wallet is corrupt
raise
self.log.warning(
f"Can't open {ci.coin_name()} wallet, could be locked."
)