1
0

hook up invoice confirm to payment flow (onchain only)

fix some leftover QEAmount issues
This commit is contained in:
Sander van Grieken
2022-04-26 13:18:34 +02:00
parent 0dce872d37
commit bf072b037c
6 changed files with 47 additions and 15 deletions

View File

@@ -117,8 +117,8 @@ class QEInvoice(QObject):
@pyqtProperty(int, notify=statusChanged)
def status(self):
if not self._effectiveInvoice:
return ''
status = self._wallet.wallet.get_invoice_status(self._effectiveInvoice)
return PR_UNKNOWN
return self._wallet.wallet.get_invoice_status(self._effectiveInvoice)
@pyqtProperty(str, notify=statusChanged)
def status_str(self):
@@ -127,6 +127,11 @@ class QEInvoice(QObject):
status = self._wallet.wallet.get_invoice_status(self._effectiveInvoice)
return self._effectiveInvoice.get_status_str(status)
# single address only, TODO: n outputs
@pyqtProperty(str, notify=invoiceChanged)
def address(self):
return self._effectiveInvoice.get_address() if self._effectiveInvoice else ''
@pyqtSlot()
def clear(self):
self.recipient = ''