diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 3cdb7a809..142050470 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -2135,9 +2135,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): 'lnutil': lnutil, }) - c = commands.Commands(config=self.config, - network=self.network, - callback=lambda: self.console.set_json(True)) + c = commands.Commands( + config=self.config, + daemon=self.gui_object.daemon, + network=self.network, + callback=lambda: self.console.set_json(True)) methods = {} def mkfunc(f, method): return lambda *args, **kwargs: f(method,