Skip to content

Commit 1cced75

Browse files
committed
fix: bump feerate and tx broadcast timeouts to 15s
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.
1 parent c0884f8 commit 1cced75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ pub(crate) const LDK_EVENT_HANDLER_SHUTDOWN_TIMEOUT_SECS: u64 = 30;
8585
pub(crate) const BACKGROUND_TASK_SHUTDOWN_TIMEOUT_SECS: u64 = 5;
8686

8787
// The timeout after which we abort a fee rate cache update operation.
88-
pub(crate) const FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 5;
88+
pub(crate) const FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 15;
8989

9090
// The timeout after which we abort a transaction broadcast operation.
91-
pub(crate) const TX_BROADCAST_TIMEOUT_SECS: u64 = 5;
91+
pub(crate) const TX_BROADCAST_TIMEOUT_SECS: u64 = 15;
9292

9393
// The timeout after which we abort a RGS sync operation.
9494
pub(crate) const RGS_SYNC_TIMEOUT_SECS: u64 = 5;

0 commit comments

Comments
 (0)