1
0

Kivy: Lightning support in Receive tab

This commit is contained in:
Janus
2018-11-13 16:53:29 +01:00
committed by ThomasV
parent ecac8f2880
commit 9d32031ca2
9 changed files with 439 additions and 20 deletions

View File

@@ -115,7 +115,8 @@ class LNWorker(PrintError):
if report['unsettled']:
yield 'Your unsettled invoices:'
yield '------------------------'
for addr, preimage in report['unsettled']:
for addr, preimage, pay_req in report['unsettled']:
yield pay_req
yield str(addr)
yield 'Preimage: ' + bh2u(preimage)
yield ''
@@ -143,7 +144,7 @@ class LNWorker(PrintError):
settled.append((datetime.fromtimestamp(date, timezone.utc), HTLCOwner(direction), htlcobj, preimage))
for preimage, pay_req in invoices.values():
addr = lndecode(pay_req, expected_hrp=constants.net.SEGWIT_HRP)
unsettled.append((addr, bfh(preimage)))
unsettled.append((addr, bfh(preimage), pay_req))
for pay_req, amount_sat in self.paying.values():
addr = lndecode(pay_req, expected_hrp=constants.net.SEGWIT_HRP)
if amount_sat is not None: