Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/routes/lnurl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ export function registerLnurlRoutes(app: FastifyInstance, deps: LnurlRouteDeps):
status: 'pending',
last_rx_counter: 0,
last_tx_counter: 0,
payment_hash: paymentHash,
// Store the payment hash from the backend-created invoice.
// Phoenixd returns its own invoice payment hash; settlement polling
// must check the hash for the actual payable invoice.
payment_hash: invoice.paymentHash || paymentHash,
listing_d_tag: deps.config.listing.d_tag,
});

Expand Down