commands: onchain_history: reuse daemon.fx if available
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user