Skip to content

Commit 7bb00fb

Browse files
committed
Update BDK sync parameters
1 parent 873fdc5 commit 7bb00fb

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
@@ -169,11 +169,11 @@ const DEFAULT_FEE_RATE_CACHE_UPDATE_INTERVAL_SECS: u64 = 60 * 10;
169169
const DEFAULT_LOG_LEVEL: LogLevel = LogLevel::Debug;
170170

171171
// The 'stop gap' parameter used by BDK's wallet sync. This seems to configure the threshold
172-
// number of blocks after which BDK stops looking for scripts belonging to the wallet.
172+
// number of derivation indexes after which BDK stops looking for new scripts belonging to the wallet.
173173
const BDK_CLIENT_STOP_GAP: usize = 20;
174174

175175
// The number of concurrent requests made against the API provider.
176-
const BDK_CLIENT_CONCURRENCY: u8 = 8;
176+
const BDK_CLIENT_CONCURRENCY: u8 = 4;
177177

178178
// The default Esplora server we're using.
179179
const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/api";

0 commit comments

Comments
 (0)