We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8b813 commit 9b2542fCopy full SHA for 9b2542f
BDKSwiftExampleWallet/View Model/WalletViewModel.swift
@@ -164,6 +164,18 @@ class WalletSyncScriptInspector: SyncScriptInspector {
164
func inspect(script: Script, total: UInt64) {
165
totalCount = total
166
inspectedCount += 1
167
+
168
+ let delay: TimeInterval =
169
+ if total <= 5 {
170
+ 0.2
171
+ } else if total < 10 {
172
+ 0.15
173
+ } else if total < 20 {
174
+ 0.1
175
+ } else {
176
+ 0
177
+ }
178
+ Thread.sleep(forTimeInterval: delay)
179
updateProgress(inspectedCount, totalCount)
180
}
181
0 commit comments