fix: prevent lnrater from blocking if no good peers
the while loop in `suggest_node_channel_open()` of lnrater would not break if there are no "good" peers available available. As a result the gui blocks and electrum has to be killed. This can happen for example on signet. This removes the tested pk from the list of candidates so each candidate gets tested only once.
This commit is contained in:
@@ -93,7 +93,8 @@ class NewChannelDialog(WindowModalDialog):
|
||||
if not nodeid:
|
||||
self.remote_nodeid.setText("")
|
||||
self.remote_nodeid.setPlaceholderText(
|
||||
"Please wait until the graph is synchronized to 30%, and then try again.")
|
||||
_("Couldn't find suitable peer yet, try again later.")
|
||||
)
|
||||
else:
|
||||
self.remote_nodeid.setText(nodeid)
|
||||
self.remote_nodeid.repaint() # macOS hack for #6269
|
||||
|
||||
Reference in New Issue
Block a user