electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit de903103dafd46e1073d0e4de5df86e2407386bd
parent 2ec548dda3664834d4a50d4f323886130285257a
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:
Melectrum/gui/qt/main_window.py | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 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,