Janus
7 years ago
committed by
SomberNight
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
0 additions and
8 deletions
-
electrum/gui/qt/main_window.py
-
lib/lnbase.py
|
|
@ -2099,7 +2099,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 = {} |
|
|
|
|
|
@ -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) |
|
|
|