Skip to content

Expose the probe amount range on ProbingConfigBuilder - #1089

Open
joschisan wants to merge 1 commit into
lightningdevkit:mainfrom
joschisan:probe-amount-range
Open

Expose the probe amount range on ProbingConfigBuilder#1089
joschisan wants to merge 1 commit into
lightningdevkit:mainfrom
joschisan:probe-amount-range

Conversation

@joschisan

@joschisan joschisan commented Sep 5, 2026

Copy link
Copy Markdown

The amount each probe is drawn from was fixed to the crate defaults of 1k - 10k sats. Nodes that mostly send larger payments want larger probes, since knowing a route passes 10k sats says little about whether it passes 500k. This adds amount_range_msat to ProbingConfigBuilder (and set_amount_range_msat on the uniffi variant) and threads it into both built-in strategies; the defaults are unchanged.

I am using this in prod already for a custom fedimint gateway.

The bounds each probe's amount is drawn from were baked-in crate
defaults (1k - 10k sats). Nodes that mostly send larger payments want
larger probes, since knowing a route passes 10k sats says little about
whether it passes 500k - add amount_range_msat to the builder (plus the
uniffi Arced variant and UDL) and thread it into both built-in
strategies.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013fi458uGXp51nh5wMNhwWY
@ldk-reviews-bot

ldk-reviews-bot commented Sep 5, 2026

Copy link
Copy Markdown

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.

@joschisan
joschisan marked this pull request as draft September 5, 2026 08:13
@joschisan
joschisan marked this pull request as ready for review September 5, 2026 08:16
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