From 83d7ebb40b69dbfaa187c07a7dec141f81a1b6fd Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sun, 8 Oct 2023 15:10:08 +0300 Subject: [PATCH] Log in case JM loads RPC wallet at startup --- src/jmclient/blockchaininterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jmclient/blockchaininterface.py b/src/jmclient/blockchaininterface.py index 67a5d5bc6..e891c7f94 100644 --- a/src/jmclient/blockchaininterface.py +++ b/src/jmclient/blockchaininterface.py @@ -338,7 +338,9 @@ def __init__(self, jsonRpc: JsonRpc, network: str, wallet_name: str) -> None: # Check that RPC wallet is loaded. If not, try to load it. loaded_wallets = self._rpc("listwallets", []) if not wallet_name in loaded_wallets: + log.info("Loading Bitcoin RPC wallet " + wallet_name + "...") self._rpc("loadwallet", [wallet_name]) + log.info("Done.") # We only support legacy wallets currently wallet_info = self._getwalletinfo() if "descriptors" in wallet_info and wallet_info["descriptors"]: