Skip to content

Expose configurable routing scorer parameters#889

Open
pwltr wants to merge 2 commits intolightningdevkit:mainfrom
pwltr:feat/scorer-params
Open

Expose configurable routing scorer parameters#889
pwltr wants to merge 2 commits intolightningdevkit:mainfrom
pwltr:feat/scorer-params

Conversation

@pwltr
Copy link
Copy Markdown

@pwltr pwltr commented Apr 24, 2026

Summary

Adds configurable pathfinding scorer parameters so apps can tune routing behavior instead of always using LDK defaults.

It introduces two new config surfaces:

  • ScoringFeeParameters (maps to ProbabilisticScoringFeeParameters)
  • ScoringDecayParameters (maps to ProbabilisticScoringDecayParameters)

These can now be set through:

  • Config (scoring_fee_params, scoring_decay_params)
  • Builder APIs:
    • set_scoring_fee_params(...)
    • set_scoring_decay_params(...)

At build time, ldk-node now uses configured scorer params when constructing a new ProbabilisticScorer (when no persisted scorer exists) and router fee params, falling back to LDK defaults when unset.

Changes and PR description created with agentic assistance

@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented Apr 24, 2026

I've assigned @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.

@ldk-reviews-bot ldk-reviews-bot requested a review from tnull April 24, 2026 15:37
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