Skip to content

chore: bump HTLC expiry threshold to 45s#5

Merged
martinsaposnic merged 1 commit intolsp-0.2.0from
lsp-0.2.0-bump-htlc-expiry
Mar 3, 2026
Merged

chore: bump HTLC expiry threshold to 45s#5
martinsaposnic merged 1 commit intolsp-0.2.0from
lsp-0.2.0-bump-htlc-expiry

Conversation

@martinsaposnic
Copy link

Summary

  • Bumps HTLC_EXPIRY_THRESHOLD_SECS from 10 to 45 in LSPS4 service
  • The 10s threshold was too tight for the webhook delivery pipeline, causing premature HTLC expiry and 20-40% RetriesExhausted on 402 payments
  • 45s is still well within CLTV delta bounds

Test plan

  • Deploy to staging with direct webhook delivery, run 100-payment test
  • Confirm RetriesExhausted rate drops to ~0%

The 10s threshold was too tight for the webhook delivery pipeline,
causing premature HTLC expiry and RetriesExhausted failures on
402 payments. 45s gives ample room for webhook round-trips while
still well within CLTV delta bounds.
@martinsaposnic martinsaposnic merged commit 1432d06 into lsp-0.2.0 Mar 3, 2026
12 of 43 checks passed
martinsaposnic added a commit to moneydevkit/ldk-node that referenced this pull request Mar 3, 2026
Fire HTTP POST directly in handle_next_event() instead of routing
through the event queue (S3 persistence), cutting webhook latency
from 15-23s to <2s.

LiquiditySource gets optional reqwest::Client + webhook_url fields.
When configured, SendWebhook events bypass the event queue entirely.
Falls back to event queue if not configured.

Also bumps rust-lightning to include HTLC expiry threshold increase
(10s -> 45s, moneydevkit/rust-lightning#5, 1432d063c).
martinsaposnic added a commit to moneydevkit/ldk-node that referenced this pull request Mar 3, 2026
Fire HTTP POST directly in handle_next_event() instead of routing
through the event queue (S3 persistence), cutting webhook latency
from 15-23s to <2s.

LiquiditySource gets optional reqwest::Client + webhook_url fields.
When configured, SendWebhook events bypass the event queue entirely.
Falls back to event queue if not configured.

Also bumps rust-lightning to include HTLC expiry threshold increase
(10s -> 45s, moneydevkit/rust-lightning#5, 1432d063c).
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.

1 participant