tlnbase: remove lnbase stub - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 1d8c7714400b2e5bb986ed35f44d9d5f1809511a DIR parent 8abd072c89c939ac424a837bdc4566a7d9eecdee HTML Author: Janus <ysangkok@gmail.com> Date: Fri, 25 May 2018 11:44:21 +0200 lnbase: remove lnbase stub Diffstat: M electrum/gui/qt/main_window.py | 1 - M lib/lnbase.py | 7 ------- 2 files changed, 0 insertions(+), 8 deletions(-) --- DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -2104,7 +2104,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): 'util': util, 'bitcoin': bitcoin, }) - if self.config.get('lnbase', False): console.updateNamespace({'lightning' : self.wallet.lnworker.console_interface}) c = commands.Commands(self.config, self.wallet, self.network, lambda: self.console.set_json(True)) methods = {} DIR diff --git a/lib/lnbase.py b/lib/lnbase.py t@@ -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: t@@ -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)