commands: onchain_history: reuse daemon.fx if available
This commit is contained in:
@@ -771,8 +771,7 @@ class Commands:
|
|||||||
kwargs['to_timestamp'] = time.mktime(end_date.timetuple())
|
kwargs['to_timestamp'] = time.mktime(end_date.timetuple())
|
||||||
if show_fiat:
|
if show_fiat:
|
||||||
from .exchange_rate import FxThread
|
from .exchange_rate import FxThread
|
||||||
fx = FxThread(config=self.config)
|
kwargs['fx'] = self.daemon.fx if self.daemon else FxThread(config=self.config)
|
||||||
kwargs['fx'] = fx
|
|
||||||
|
|
||||||
return json_normalize(wallet.get_detailed_history(**kwargs))
|
return json_normalize(wallet.get_detailed_history(**kwargs))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user