From 6513270bf85883c2b9fd4accc4c45888e42922b4 Mon Sep 17 00:00:00 2001 From: vindard <17693119+vindard@users.noreply.github.com> Date: Mon, 6 May 2024 11:49:03 -0400 Subject: [PATCH] revert(core): lookup payment only by payment hash (#4420) This reverts commit dc50d894c1c15cd3ba77a4eb95548ec1fb61c221. --- core/api/src/app/payments/update-pending-payments.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/api/src/app/payments/update-pending-payments.ts b/core/api/src/app/payments/update-pending-payments.ts index 4f2d4e4015..e20accf0af 100644 --- a/core/api/src/app/payments/update-pending-payments.ts +++ b/core/api/src/app/payments/update-pending-payments.ts @@ -172,7 +172,10 @@ const updatePendingPayment = wrapAsyncToRunInSpan({ const lndService = LndService() if (lndService instanceof Error) return lndService - const lnPaymentLookup = await lndService.lookupPayment({ paymentHash }) + const lnPaymentLookup = await lndService.lookupPayment({ + pubkey, + paymentHash, + }) if (lnPaymentLookup instanceof Error) { logger.error( {