File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ final class KyotoService: BDKSyncService {
61
61
let wallet = try loadWalleFromBackup ( )
62
62
self . wallet = wallet
63
63
}
64
-
64
+
65
65
func startSync( progress: @escaping SyncScanProgress ) async throws {
66
66
if isScanRunning { return }
67
67
guard let wallet = self . wallet else {
@@ -85,7 +85,7 @@ final class KyotoService: BDKSyncService {
85
85
}
86
86
let nodeComponents = try buildNode (
87
87
from: wallet,
88
- scanType: . recovery ( fromHeight : network . taprootHeight )
88
+ scanType: . new
89
89
)
90
90
91
91
self . fullScanProgress = progress
@@ -160,14 +160,6 @@ final class KyotoService: BDKSyncService {
160
160
} catch {
161
161
print ( error)
162
162
}
163
- // if let update = await client?.update() {
164
- // do {
165
- // try wallet?.applyUpdate(update: update)
166
- // NotificationCenter.default.post(name: .walletDidUpdate, object: nil)
167
- // } catch {
168
- // print(error)
169
- // }
170
- // }
171
163
}
172
164
}
173
165
}
@@ -184,6 +176,7 @@ final class KyotoService: BDKSyncService {
184
176
let _progress = UInt64 ( progress * 100.0 )
185
177
fullScanProgress ( _progress)
186
178
}
179
+ print ( " Progress: \( progress) " )
187
180
default :
188
181
break
189
182
}
Original file line number Diff line number Diff line change @@ -95,13 +95,4 @@ extension Network {
95
95
Constants . Config. EsploraServerURLNetwork. Testnet4. allValues. first ?? " "
96
96
}
97
97
}
98
-
99
- var taprootHeight : UInt32 {
100
- switch self {
101
- case . bitcoin:
102
- return 700_000
103
- default :
104
- return 250_000
105
- }
106
- }
107
98
}
You can’t perform that action at this time.
0 commit comments