Skip to content

Commit e8b7cca

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 7bb00fb commit e8b7cca

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
@@ -163,8 +163,8 @@ const DEFAULT_STORAGE_DIR_PATH: &str = "/tmp/ldk_node/";
163163
const DEFAULT_NETWORK: Network = Network::Bitcoin;
164164
const DEFAULT_LISTENING_ADDR: &str = "0.0.0.0:9735";
165165
const DEFAULT_CLTV_EXPIRY_DELTA: u32 = 144;
166-
const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS: u64 = 60;
167-
const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS: u64 = 20;
166+
const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS: u64 = 80;
167+
const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS: u64 = 30;
168168
const DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS: u64 = 60 * 10;
169169
const DEFAULT_LOG_LEVEL: LogLevel = LogLevel::Debug;
170170

0 commit comments

Comments
 (0)