Skip to content

Commit f5b7238

Browse files
committed
Increase sync intervals and make them non-harmonious
We choose constants that reduce the chance of overlapping syncs past the initial one.
1 parent fcc865e commit f5b7238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ const DEFAULT_STORAGE_DIR_PATH: &str = "/tmp/ldk_node/";
165165
const DEFAULT_NETWORK: Network = Network::Bitcoin;
166166
const DEFAULT_LISTENING_ADDR: &str = "0.0.0.0:9735";
167167
const DEFAULT_CLTV_EXPIRY_DELTA: u32 = 144;
168-
const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS: u64 = 60;
169-
const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS: u64 = 20;
168+
const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS: u64 = 80;
169+
const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS: u64 = 30;
170170
const DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS: u64 = 60 * 10;
171171
const DEFAULT_LOG_LEVEL: LogLevel = LogLevel::Debug;
172172

0 commit comments

Comments
 (0)