1
0

commands: onchain_history: reuse daemon.fx if available

This commit is contained in:
SomberNight
2023-06-14 00:58:21 +00:00
parent 951199ffc3
commit 5d5def2ef4

View File

@@ -771,8 +771,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))