From 03615c2cfc5f1d7845d319fd9405828aaaf5c04b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 14 Jun 2023 00:58:21 +0000 Subject: [PATCH] commands: onchain_history: reuse daemon.fx if available --- electrum/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/commands.py b/electrum/commands.py index e70b66e35..77838f22e 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -773,8 +773,7 @@ class Commands: kwargs['to_timestamp'] = time.mktime(end_date.timetuple()) if show_fiat: from .exchange_rate import FxThread - fx = FxThread(config=self.config) - kwargs['fx'] = fx + kwargs['fx'] = self.daemon.fx if self.daemon else FxThread(config=self.config) return json_normalize(wallet.get_detailed_history(**kwargs))