Open ok300 opened 7 months ago
Currently we get the payment from the INVOICE_PAID event and persist it without using even sync. @ok300 Do we need to do anything here?
It looks like when we get received_payment
event, we start a foreground service
and the foreground service keeps running until sync
is complete
Processing a
payment_received
notification involves async()
.The filtering by since timestamp happens locally, after the full list of payments is retrieved from GL.
Fortunately,
listpays
allows for filtering bypayment_hash
. Calling it this way would only fetch data for a single payment, speeding up the processing ofpayment_received
notifications significantly.listpay
docs: https://docs.corelightning.org/reference/lightning-listpays