Skip to content

Use ldk-node for forwarded payment history - #283

Merged
tnull merged 2 commits into
lightningdevkit:mainfrom
benthecarman:migrate-forwarded-payments-ldk-node
Sep 17, 2026
Merged

tnull merged 2 commits into
lightningdevkit:mainfrom
benthecarman:migrate-forwarded-payments-ldk-node

Conversation

@benthecarman

@benthecarman benthecarman commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Closes #162
Closes #172

With lightningdevkit/ldk-node#772 merged we can now use this instead of the original ldk-server based version. This also allows us to remove ldk-server's specific sqlite db and implementation.

@benthecarman
benthecarman requested a review from tnull September 14, 2026 17:55
@ldk-reviews-bot

ldk-reviews-bot commented Sep 14, 2026

Copy link
Copy Markdown

👋 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.

@benthecarman
benthecarman force-pushed the migrate-forwarded-payments-ldk-node branch from a38f16d to 7625fdc Compare September 14, 2026 18:11
# Forwarding history: "detailed" retains individual records for the current and previous hour,
# then aggregates them into hourly channel-pair statistics and removes the individual records.
# "stats" updates per-channel totals directly without storing individual forwards.
#forwarded_payment_tracking_mode = "stats" # Default: "stats"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is the default, should we expose channel_stats, list_channel_stats, and list_channel_pair_stats in this PR?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@benthecarman
benthecarman requested a review from tnull September 15, 2026 18:49
Update the server and end-to-end test dependency pins to include
forwarded payment storage. Handle the new node errors and runtime
setup result required by the updated API.

AI assistance: OpenAI Codex.
Use ldk-node for forwarding history and pagination. Remove the
server-specific SQLite database, storage code, and event-driven
history writes so all payment history uses the node's store.

AI assistance: OpenAI Codex.
@benthecarman
benthecarman force-pushed the migrate-forwarded-payments-ldk-node branch from c5b7158 to 42e05f6 Compare September 16, 2026 18:18
@tnull
tnull merged commit 6d20fe3 into lightningdevkit:main Sep 17, 2026
11 of 12 checks passed
@benthecarman
benthecarman deleted the migrate-forwarded-payments-ldk-node branch September 17, 2026 14:08
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.

Unify database Add timestamp to ForwardedPayment

3 participants