Skip to content

Commit

Permalink
fix(core): lookup payment only by payment hash (#4420)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi authored May 3, 2024
1 parent 221f376 commit dc50d89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/api/src/app/payments/update-pending-payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,7 @@ const updatePendingPayment = wrapAsyncToRunInSpan({

const lndService = LndService()
if (lndService instanceof Error) return lndService
const lnPaymentLookup = await lndService.lookupPayment({
pubkey,
paymentHash,
})
const lnPaymentLookup = await lndService.lookupPayment({ paymentHash })
if (lnPaymentLookup instanceof Error) {
logger.error(
{
Expand Down

0 comments on commit dc50d89

Please sign in to comment.