Skip to content

Commit 13ae399

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 0159bee commit 13ae399

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ 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.
3939
pub(crate) const DEFAULT_FEE_RATE_CACHE_UPDATE_TIMEOUT_SECS: u64 = 5;
@@ -387,8 +387,8 @@ impl Default for BackgroundSyncConfig {
387387
///
388388
/// | Parameter | Value |
389389
/// |----------------------------------------|--------------------|
390-
/// | `onchain_wallet_sync_timeout_secs` | 20 |
391-
/// | `lightning_wallet_sync_timeout_secs` | 10 |
390+
/// | `onchain_wallet_sync_timeout_secs` | 60 |
391+
/// | `lightning_wallet_sync_timeout_secs` | 30 |
392392
/// | `fee_rate_cache_update_timeout_secs` | 5 |
393393
/// | `tx_broadcast_timeout_secs` | 5 |
394394
/// | `sync_client_request_timeout_secs` | 10 |

0 commit comments

Comments
 (0)