1
0

qt: fix password passed to open_channel, cleanup

This commit is contained in:
ThomasV
2018-05-25 11:08:48 +02:00
parent 6ac15962dc
commit 5a819611c8
3 changed files with 14 additions and 17 deletions

View File

@@ -1394,11 +1394,7 @@ class LNWorker:
coro = peer.channel_establishment_flow(self.wallet, self.config, password, amount, push_msat, temp_channel_id=os.urandom(32))
return asyncio.run_coroutine_threadsafe(coro, self.network.asyncio_loop)
def open_channel_from_other_thread(self, node_id, local_amt, push_amt, emit_function, get_password):
pw = get_password()
if pw is None:
# user pressed cancel
return
def open_channel_from_other_thread(self, node_id, local_amt, push_amt, emit_function, pw):
# TODO this could race on peers
peer = self.peers.get(node_id)
if peer is None: