1
0

qt: channel_details: add more info: sent/received, channel id, funding tx, short channel id, node id

This commit is contained in:
Janus
2018-11-27 21:43:28 +01:00
committed by ThomasV
parent 762d8be84f
commit 864d910888
4 changed files with 91 additions and 21 deletions

View File

@@ -46,7 +46,10 @@ class ChannelsList(MyTreeWidget):
network = self.parent.network
lnworker = self.parent.wallet.lnworker
menu = QMenu()
channel_id = self.currentItem().data(0, QtCore.Qt.UserRole)
item = self.currentItem()
if not item:
return
channel_id = item.data(0, QtCore.Qt.UserRole)
def on_success(txid):
self.main_window.show_error('Channel closed' + '\n' + txid)
def on_failure(exc_info):