1
0

rebase fixup: use new broadcast_transaction API

This commit is contained in:
Janus
2018-10-12 16:27:12 +02:00
committed by ThomasV
parent 601356f5d1
commit 94a10e6307
4 changed files with 12 additions and 8 deletions

View File

@@ -37,9 +37,10 @@ class ChannelsList(MyTreeWidget):
def close():
netw = self.parent.network
coro = self.parent.wallet.lnworker.close_channel(channel_id)
suc, msg = netw.run_from_another_thread(coro)
if not suc:
self.main_window.show_error('Force-close failed:\n{}'.format(msg))
try:
_txid = netw.run_from_another_thread(coro)
except Exception as e:
self.main_window.show_error('Force-close failed:\n{}'.format(repr(e)))
menu.addAction(_("Force-close channel"), close)
menu.exec_(self.viewport().mapToGlobal(position))