Skip to content

Include on-chain payments in list payments API#219

Open
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:fix-onchain-payments
Open

Include on-chain payments in list payments API#219
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:fix-onchain-payments

Conversation

@benthecarman
Copy link
Copy Markdown
Collaborator

@benthecarman benthecarman commented May 22, 2026

ListPayments only read from ldk-server's paginated payment store, which is populated from Lightning payment events. On-chain payments are stored by LDK Node directly, so they never appeared in paginated list responses.

Backfill on-chain payments from LDK Node before reading the existing paginated store. This keeps list payments complete until LDK Node owns paginated listing for both Lightning and on-chain payments. Eventually we can remove this when we use the paginated KV store all throughout ldk-node.

Add an e2e test covering an on-chain send appearing in list payments.

@benthecarman benthecarman requested a review from tnull May 22, 2026 21:24
@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented May 22, 2026

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

ListPayments only read from ldk-server's paginated payment store, which
is populated from Lightning payment events. On-chain payments are stored
by LDK Node directly, so they never appeared in paginated list responses.

Backfill on-chain payments from LDK Node before reading the existing
paginated store. This keeps list payments complete until LDK Node owns
paginated listing for both Lightning and on-chain payments.

Add an e2e test covering an on-chain send appearing in list payments.
@benthecarman benthecarman force-pushed the fix-onchain-payments branch from ad05e31 to 4889d15 Compare May 23, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants