Index request by ID instead of receiving address.
Replace get_key_for_outgoing_invoice, get_key_for_incoming_request with Invoice.get_id() When a new request is created, reuse addresses of expired requests (fixes #7927) The API is changed for the following commands: get_request, get_invoice, list_requests, list_invoices, delete_request, delete_invoice
This commit is contained in:
@@ -646,7 +646,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
|
||||
|
||||
def pay_lightning_invoice(self, invoice: Invoice):
|
||||
amount_sat = invoice.get_amount_sat()
|
||||
key = self.wallet.get_key_for_outgoing_invoice(invoice)
|
||||
key = invoice.get_id()
|
||||
if amount_sat is None:
|
||||
raise Exception("missing amount for LN invoice")
|
||||
if not self.wallet.lnworker.can_pay_invoice(invoice):
|
||||
|
||||
Reference in New Issue
Block a user