xmr: Use walletrpctimeoutlong setting for generate_from_keys

This commit is contained in:
tecnovert 2025-03-27 17:03:35 +02:00
parent 65cf6789a7
commit 0f0afa67ed
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93

View file

@ -143,7 +143,6 @@ class XMRInterface(CoinInterface):
self._rpctimeout = coin_settings.get("rpctimeout", 60)
self._walletrpctimeout = coin_settings.get("walletrpctimeout", 120)
# walletrpctimeoutlong likely unneeded
self._walletrpctimeoutlong = coin_settings.get("walletrpctimeoutlong", 600)
self.rpc = make_xmr_rpc_func(
@ -179,7 +178,9 @@ class XMRInterface(CoinInterface):
def createWallet(self, params):
if self._wallet_password is not None:
params["password"] = self._wallet_password
rv = self.rpc_wallet("generate_from_keys", params)
rv = self.rpc_wallet(
"generate_from_keys", params, timeout=self._walletrpctimeoutlong
)
if "address" in rv:
new_address: str = rv["address"]
is_watch_only: bool = "Watch-only" in rv.get("info", "")