From 18b335cf011a2bf0fae41ee98d4b976aac5dcd3b Mon Sep 17 00:00:00 2001 From: Janus Date: Fri, 25 May 2018 11:44:21 +0200 Subject: [PATCH] lnbase: remove lnbase stub --- gui/qt/main_window.py | 1 - lib/lnbase.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 550eea08..0a34bebe 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1928,7 +1928,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): 'network' : self.network, 'plugins' : self.gui_object.plugins, 'window': self}) - if self.config.get('lnbase', False): console.updateNamespace({'lightning' : self.wallet.lnworker.console_interface}) console.updateNamespace({'util' : util, 'bitcoin':bitcoin}) c = commands.Commands(self.config, self.wallet, self.network, lambda: self.console.set_json(True)) diff --git a/lib/lnbase.py b/lib/lnbase.py index e5ffde68..3f3c0de0 100644 --- a/lib/lnbase.py +++ b/lib/lnbase.py @@ -1363,12 +1363,6 @@ class Peer(PrintError): channel_id = int.from_bytes(payload["channel_id"], 'big') self.revoke_and_ack[channel_id].set_result(payload) -class ConsoleInterface: - def __init__(self, lnworker): - self.lnworker = lnworker - def __repr__(self): - return str(dir(self)) - # replacement for lightningCall class LNWorker: @@ -1383,7 +1377,6 @@ class LNWorker: print("Adding", len(peer_list), "peers") for host, port, pubkey in peer_list: self.add_peer(host, port, pubkey) - self.console_interface = ConsoleInterface(self) def add_peer(self, host, port, pubkey): peer = Peer(host, int(port), binascii.unhexlify(pubkey), self.privkey, self.network)