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

@@ -128,7 +128,7 @@ class LNWorker(PrintError):
if report['inflight']:
yield 'Outgoing payments in progress:'
yield '------------------------------'
for addr, htlc in report['inflight']:
for addr, htlc, direction in report['inflight']:
yield str(addr)
yield str(htlc)
yield ''
@@ -162,7 +162,7 @@ class LNWorker(PrintError):
htlc = self.find_htlc_for_addr(addr, None if chan_id is None else [chan_id])
if not htlc:
self.print_error('Warning, in flight HTLC not found in any channel')
inflight.append((addr, htlc))
inflight.append((addr, htlc, direction))
return {'settled': settled, 'unsettled': unsettled, 'inflight': inflight}
def find_htlc_for_addr(self, addr, whitelist=None):