Added internal payment listener to paid invoices and splitpayments

This commit is contained in:
benarc
2021-10-18 13:24:32 +01:00
parent 3285e9d3c9
commit cf6fae2ca7
3 changed files with 7 additions and 8 deletions
+3 -4
View File
@@ -32,8 +32,6 @@ except ImportError: # pragma: nocover
from typing_extensions import TypedDict
class PaymentFailure(Exception):
pass
@@ -155,9 +153,10 @@ async def pay_invoice(
)
# notify receiver asynchronously
from lnbits.tasks import internal_invoice_paid
await internal_invoice_paid.send(internal_checking_id)
from lnbits.tasks import internal_invoice_queue
await internal_invoice_queue.put(internal_checking_id)
else:
# actually pay the external invoice
payment: PaymentResponse = await WALLET.pay_invoice(payment_request)