ThomasV
7 years ago
committed by
SomberNight
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
1 deletions
-
electrum/lnworker.py
|
|
@ -53,7 +53,6 @@ class LNWorker(PrintError): |
|
|
|
|
|
|
|
def suggest_peer(self): |
|
|
|
for node_id, peer in self.peers.items(): |
|
|
|
print(bh2u(node_id), len(peer.channels)) |
|
|
|
if len(peer.channels) > 0: |
|
|
|
continue |
|
|
|
if not(peer.initialized.done()): |
|
|
@ -206,6 +205,8 @@ class LNWorker(PrintError): |
|
|
|
self.peers.pop(k) |
|
|
|
if len(self.peers) > 3: |
|
|
|
continue |
|
|
|
if not self.network.lightning_nodes: |
|
|
|
continue |
|
|
|
node_id = random.choice(list(self.network.lightning_nodes.keys())) |
|
|
|
node = self.network.lightning_nodes.get(node_id) |
|
|
|
addresses = node.get('addresses') |
|
|
|