Speedup payment_received
notifications: Fetch single pay from GL instead of full sync()
#813
Labels
payment_received
notifications: Fetch single pay from GL instead of full sync()
#813
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-listpaysThe text was updated successfully, but these errors were encountered: