Skip to content

fix: sync timeouts and scoring task type#66

Open
ovitrif wants to merge 4 commits intomainfrom
fix/timeout-and-scoring
Open

fix: sync timeouts and scoring task type#66
ovitrif wants to merge 4 commits intomainfrom
fix/timeout-and-scoring

Conversation

@ovitrif
Copy link
Collaborator

@ovitrif ovitrif commented Feb 28, 2026

Summary

  • Bump FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS and TX_BROADCAST_TIMEOUT_SECS from 5s to 15s — the 5s node-level timeout fires before Electrum can complete a single request (10s timeout), causing FeerateEstimationUpdateTimeout on node start
  • Use spawn_cancellable_background_task for external scores sync instead of spawn_background_processor_task — the latter is reserved for the single LDK background processor and caused a debug_assert panic when Node::start() later tried to spawn it

Changes

File Change
src/config.rs Bump timeout constants from 5s to 15s
src/scoring.rs Switch to spawn_cancellable_background_task
Cargo.toml Version bump to 0.7.0-rc.29
bindings/* Regenerated via bindgen.sh
CHANGELOG.md Add rc.29 entries
Package.swift Update tag to rc.29
bindings/python/pyproject.toml Update version to rc.29

Release

Integration

🤖 Generated with Claude Code

ovitrif and others added 3 commits February 28, 2026 20:55
The 5-second node-level timeout fires before Electrum can complete
a single request (10s timeout), causing FeerateEstimationUpdateTimeout
on node start. Bump both FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS and
TX_BROADCAST_TIMEOUT_SECS from 5s to 15s.

Upstream fixed this in lightningdevkit/ldk-node@40c4b09 (bumped to
10s). We use 15s for extra margin with slow Electrum servers.
spawn_background_processor_task is reserved for the single LDK
background processor. The external scores sync was incorrectly
using it, which caused a debug_assert panic when Node::start()
later tried to spawn the actual background processor.

Switch to spawn_cancellable_background_task which matches the
pattern used by other periodic background tasks (RGS sync, peer
reconnection, broadcast queue).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ovitrif ovitrif changed the title fix: bump timeouts + scoring task type fix: sync timeouts and scoring task type Mar 1, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants