Skip to content

Commit fcc865e

Browse files
committed
Update BDK sync parameters
1 parent 821b06a commit fcc865e

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

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

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

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

0 commit comments

Comments
 (0)