1
0

Separate open_channel dialog. In open_channel_coroutine, use host and port from channel announcements

This commit is contained in:
ThomasV
2018-06-27 12:44:43 +02:00
parent dbdabcfc5d
commit c7e47b74a9
5 changed files with 71 additions and 44 deletions

View File

@@ -607,7 +607,6 @@ class Peer(PrintError):
self.announcement_signatures = defaultdict(asyncio.Queue)
self.update_fail_htlc = defaultdict(asyncio.Queue)
self.localfeatures = (0x08 if request_initial_sync else 0)
self.nodes = {}
self.channels = lnworker.channels
self.invoices = lnworker.invoices
self.attempted_route = {}
@@ -757,7 +756,7 @@ class Peer(PrintError):
pass
continue
alias = payload['alias'].rstrip(b'\x00')
self.nodes[pubkey] = {
self.network.lightning_nodes[pubkey] = {
'alias': alias,
'addresses': addresses
}