SomberNight
7 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
2 additions and
3 deletions
-
electrum/gui/qt/channels_list.py
|
@ -34,9 +34,8 @@ class ChannelsList(MyTreeWidget): |
|
|
def close(): |
|
|
def close(): |
|
|
suc, msg = self.parent.wallet.lnworker.close_channel(channel_id) |
|
|
suc, msg = self.parent.wallet.lnworker.close_channel(channel_id) |
|
|
if not suc: |
|
|
if not suc: |
|
|
print('channel close broadcast failed:', msg) |
|
|
self.main_window.show_error('Force-close failed:\n{}'.format(msg)) |
|
|
assert suc # TODO show error message in dialog |
|
|
menu.addAction(_("Force-close channel"), close) |
|
|
menu.addAction(_("Close channel"), close) |
|
|
|
|
|
menu.exec_(self.viewport().mapToGlobal(position)) |
|
|
menu.exec_(self.viewport().mapToGlobal(position)) |
|
|
|
|
|
|
|
|
@QtCore.pyqtSlot(HTLCStateMachine) |
|
|
@QtCore.pyqtSlot(HTLCStateMachine) |
|
|