Skip to content

Commit a071238

Browse files
authored
chore: stopgap
1 parent d745976 commit a071238

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BDKSwiftExampleWallet/Service/BDK Service/BDKService.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,10 @@ private class BDKService {
384384
.build()
385385
let update = try esploraClient.fullScan(
386386
request: fullScanRequest,
387-
stopGap: UInt64(150), // should we default value this for folks?
388-
parallelRequests: UInt64(5) // should we default value this for folks?
387+
// using https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#address-gap-limit
388+
stopGap: UInt64(20),
389+
// using https://github.com/bitcoindevkit/bdk/blob/master/example-crates/example_wallet_esplora_blocking/src/main.rs
390+
parallelRequests: UInt64(5)
389391
)
390392
let _ = try wallet.applyUpdate(update: update)
391393
guard let connection = self.connection else {

0 commit comments

Comments
 (0)