@@ -10,7 +10,7 @@ import Foundation
10
10
11
11
final class KyotoService: BDKSyncService {
12
12
13
- private static let nodeHeight : UInt32 = 251_000
13
+ private static let nodeHeight : UInt32 = 253_000
14
14
15
15
static let shared = KyotoService ( )
16
16
@@ -91,7 +91,6 @@ final class KyotoService: BDKSyncService {
91
91
node? . run ( )
92
92
printLogs ( )
93
93
updateWarn ( )
94
- // await continuallyUpdate()
95
94
try await startUpdating ( )
96
95
}
97
96
@@ -105,19 +104,19 @@ final class KyotoService: BDKSyncService {
105
104
return true
106
105
}
107
106
108
- private func continuallyUpdate( ) async {
109
- Task {
110
- while true {
111
- guard let update = await self . client? . update ( ) else { return }
112
- try self . wallet? . applyUpdate ( update: update)
113
- let _ = try self . wallet? . persist ( connection: self . connection ?? Connection . loadConnection ( ) )
114
- print ( " ######### walletUpdated " )
115
- // DispatchQueue.main.async {
116
- // NotificationCenter.default.post(name: .walletUpdated, object: nil)
117
- // }
118
- }
119
- }
120
- }
107
+ // private func continuallyUpdate() async {
108
+ // Task {
109
+ // while true {
110
+ // guard let update = await self.client?.update() else { return }
111
+ // try self.wallet?.applyUpdate(update: update)
112
+ // let _ = try self.wallet?.persist(connection: self.connection ?? Connection.loadConnection())
113
+ // print("######### walletUpdated")
114
+ //// DispatchQueue.main.async {
115
+ //// NotificationCenter.default.post(name: .walletUpdated, object: nil)
116
+ //// }
117
+ // }
118
+ // }
119
+ // }
121
120
122
121
private func printLogs( ) {
123
122
Task {
0 commit comments