lnbase: remove lnbase stub
This commit is contained in:
parent
5ecfb42112
commit
18b335cf01
@ -1928,7 +1928,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
|||||||
'network' : self.network,
|
'network' : self.network,
|
||||||
'plugins' : self.gui_object.plugins,
|
'plugins' : self.gui_object.plugins,
|
||||||
'window': self})
|
'window': self})
|
||||||
if self.config.get('lnbase', False): console.updateNamespace({'lightning' : self.wallet.lnworker.console_interface})
|
|
||||||
console.updateNamespace({'util' : util, 'bitcoin':bitcoin})
|
console.updateNamespace({'util' : util, 'bitcoin':bitcoin})
|
||||||
|
|
||||||
c = commands.Commands(self.config, self.wallet, self.network, lambda: self.console.set_json(True))
|
c = commands.Commands(self.config, self.wallet, self.network, lambda: self.console.set_json(True))
|
||||||
|
|||||||
@ -1363,12 +1363,6 @@ class Peer(PrintError):
|
|||||||
channel_id = int.from_bytes(payload["channel_id"], 'big')
|
channel_id = int.from_bytes(payload["channel_id"], 'big')
|
||||||
self.revoke_and_ack[channel_id].set_result(payload)
|
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
|
# replacement for lightningCall
|
||||||
class LNWorker:
|
class LNWorker:
|
||||||
|
|
||||||
@ -1383,7 +1377,6 @@ class LNWorker:
|
|||||||
print("Adding", len(peer_list), "peers")
|
print("Adding", len(peer_list), "peers")
|
||||||
for host, port, pubkey in peer_list:
|
for host, port, pubkey in peer_list:
|
||||||
self.add_peer(host, port, pubkey)
|
self.add_peer(host, port, pubkey)
|
||||||
self.console_interface = ConsoleInterface(self)
|
|
||||||
|
|
||||||
def add_peer(self, host, port, pubkey):
|
def add_peer(self, host, port, pubkey):
|
||||||
peer = Peer(host, int(port), binascii.unhexlify(pubkey), self.privkey, self.network)
|
peer = Peer(host, int(port), binascii.unhexlify(pubkey), self.privkey, self.network)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user