Skip to content

Commit 40c4b09

Browse files
committed
Bump default wallet syncing timeouts
It seems that users often hit these timeouts when running in production, especially when run in sub-optimal network condidtions. Here we considerably bump the timeouts, in the hopes that users now normally shouldn't hit them ever. Signed-off-by: Elias Rohrer <dev@tnull.de>
1 parent 760e5e7 commit 40c4b09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/config.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ const DEFAULT_PROBING_LIQUIDITY_LIMIT_MULTIPLIER: u64 = 3;
3030
const DEFAULT_ANCHOR_PER_CHANNEL_RESERVE_SATS: u64 = 25_000;
3131

3232
// The default timeout after which we abort a wallet syncing operation.
33-
const DEFAULT_BDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 20;
33+
const DEFAULT_BDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 60;
3434

3535
// The default timeout after which we abort a wallet syncing operation.
36-
const DEFAULT_LDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 10;
36+
const DEFAULT_LDK_WALLET_SYNC_TIMEOUT_SECS: u64 = 30;
3737

3838
// The default timeout after which we abort a fee rate cache update operation.
39-
pub(crate) const DEFAULT_FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 5;
39+
pub(crate) const DEFAULT_FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 10;
4040

4141
// The default timeout after which we abort a transaction broadcast operation.
42-
pub(crate) const DEFAULT_TX_BROADCAST_TIMEOUT_SECS: u64 = 5;
42+
pub(crate) const DEFAULT_TX_BROADCAST_TIMEOUT_SECS: u64 = 10;
4343

4444
// The default {Esplora,Electrum} client timeout we're using.
4545
const DEFAULT_PER_REQUEST_TIMEOUT_SECS: u8 = 10;
@@ -387,10 +387,10 @@ impl Default for BackgroundSyncConfig {
387387
///
388388
/// | Parameter | Value |
389389
/// |----------------------------------------|--------------------|
390-
/// | `onchain_wallet_sync_timeout_secs` | 20 |
391-
/// | `lightning_wallet_sync_timeout_secs` | 10 |
392-
/// | `fee_rate_cache_update_timeout_secs` | 5 |
393-
/// | `tx_broadcast_timeout_secs` | 5 |
390+
/// | `onchain_wallet_sync_timeout_secs` | 60 |
391+
/// | `lightning_wallet_sync_timeout_secs` | 30 |
392+
/// | `fee_rate_cache_update_timeout_secs` | 10 |
393+
/// | `tx_broadcast_timeout_secs` | 10 |
394394
/// | `per_request_timeout_secs` | 10 |
395395
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
396396
pub struct SyncTimeoutsConfig {

0 commit comments

Comments
 (0)