Skip to content

Commit 35c7072

Browse files
committed
removed taprootheight
1 parent 531cc7b commit 35c7072

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

BDKSwiftExampleWallet/Service/BDKSyncService/KyotoService.swift

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class KyotoService: BDKSyncService {
6161
let wallet = try loadWalleFromBackup()
6262
self.wallet = wallet
6363
}
64-
64+
6565
func startSync(progress: @escaping SyncScanProgress) async throws {
6666
if isScanRunning { return }
6767
guard let wallet = self.wallet else {
@@ -85,7 +85,7 @@ final class KyotoService: BDKSyncService {
8585
}
8686
let nodeComponents = try buildNode(
8787
from: wallet,
88-
scanType: .recovery(fromHeight: network.taprootHeight)
88+
scanType: .new
8989
)
9090

9191
self.fullScanProgress = progress
@@ -160,14 +160,6 @@ final class KyotoService: BDKSyncService {
160160
} catch {
161161
print(error)
162162
}
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-
// }
171163
}
172164
}
173165
}
@@ -184,6 +176,7 @@ final class KyotoService: BDKSyncService {
184176
let _progress = UInt64(progress * 100.0)
185177
fullScanProgress(_progress)
186178
}
179+
print("Progress: \(progress)")
187180
default:
188181
break
189182
}

BDKSwiftExampleWallet/Utilities/Constants.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,4 @@ extension Network {
9595
Constants.Config.EsploraServerURLNetwork.Testnet4.allValues.first ?? ""
9696
}
9797
}
98-
99-
var taprootHeight: UInt32 {
100-
switch self {
101-
case .bitcoin:
102-
return 700_000
103-
default:
104-
return 250_000
105-
}
106-
}
10798
}

0 commit comments

Comments
 (0)