Skip to content

Allow setting custom scoring parameters#23

Merged
amackillop merged 1 commit intolsp-0.7.0_accept-underpaying-htlcs_with_timing_logsfrom
austin_add-ability-to-set-scoring-params
Apr 25, 2026
Merged

Allow setting custom scoring parameters#23
amackillop merged 1 commit intolsp-0.7.0_accept-underpaying-htlcs_with_timing_logsfrom
austin_add-ability-to-set-scoring-params

Conversation

@amackillop
Copy link
Copy Markdown

The ProbabilisticScorer and DefaultRouter were always initialized with hardcoded defaults. If you wanted different fee penalties or decay behavior, you had to edit the source.

This adds a ProbabilisticScoringParameters struct and exposes it through the builder API so both fee and decay parameters are configurable. Ported from cequals#5; the prober module from the original does not exist on this branch so that part was dropped.

Copy link
Copy Markdown

@martinsaposnic martinsaposnic left a comment

Choose a reason for hiding this comment

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

cool

The ProbabilisticScorer and DefaultRouter were always initialized with
hardcoded defaults. If you wanted different fee penalties or decay
behavior, you had to edit the source.

This adds a ProbabilisticScoringParameters struct and exposes it through
the builder API so both fee and decay parameters are configurable. Ported
from cequals#5; the prober module from the original does not
exist on this branch so that part was dropped.
@amackillop amackillop force-pushed the austin_add-ability-to-set-scoring-params branch from 251116e to 3930602 Compare April 24, 2026 20:02
@amackillop amackillop merged commit 5baa1f8 into lsp-0.7.0_accept-underpaying-htlcs_with_timing_logs Apr 25, 2026
6 of 34 checks passed
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