mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
Fix testnet path when deleting wallet on node (#2395)
This commit is contained in:
parent
3301accc5b
commit
b85cf745f8
1 changed files with 5 additions and 3 deletions
|
|
@ -668,10 +668,12 @@ class Node(AbstractNode):
|
|||
)
|
||||
except RpcError:
|
||||
pass
|
||||
if self.chain != "main":
|
||||
path = os.path.join(datadir, f"{self.chain}/wallets", wallet_rpc_path)
|
||||
else:
|
||||
if self.chain == "test":
|
||||
path = os.path.join(datadir, "testnet3/wallets", wallet_rpc_path)
|
||||
elif self.chain == "main":
|
||||
path = os.path.join(datadir, wallet_rpc_path)
|
||||
else:
|
||||
path = os.path.join(datadir, f"{self.chain}/wallets", wallet_rpc_path)
|
||||
try:
|
||||
shutil.rmtree(path, ignore_errors=False)
|
||||
logger.debug(f"Removing wallet file at: {path}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue