1
0

lnhtlc: small clean-up / docstrings

This commit is contained in:
SomberNight
2019-03-21 22:51:18 +01:00
committed by ThomasV
parent 268f05c60c
commit 8632f027da
4 changed files with 36 additions and 22 deletions

View File

@@ -114,8 +114,10 @@ class ChannelDetailsDialog(QtWidgets.QDialog):
self.update_sent_received()
def update_sent_received(self):
self.sent_label.setText(str(htlcsum(self.chan.hm.settled_htlcs_by(LOCAL))))
self.received_label.setText(str(htlcsum(self.chan.hm.settled_htlcs_by(REMOTE))))
self.sent_label.setText(str(htlcsum(
self.chan.total_msat(Direction.SENT))))
self.received_label.setText(str(htlcsum(
self.chan.total_msat(Direction.RECEIVED))))
@QtCore.pyqtSlot(str)
def show_tx(self, link_text: str):