Browse Source

commands: onchain_history: reuse daemon.fx if available

master
SomberNight 3 years ago
parent
commit
03615c2cfc
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/commands.py

3
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))

Loading…
Cancel
Save