tpass daemon to Commands instance in qt console. fixes #6926 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit de903103dafd46e1073d0e4de5df86e2407386bd DIR parent 2ec548dda3664834d4a50d4f323886130285257a HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 10 Jan 2021 11:43:00 +0100 pass daemon to Commands instance in qt console. fixes #6926 Diffstat: M electrum/gui/qt/main_window.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -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,