File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
BDKSwiftExampleWallet/Extensions/BDK+Extensions Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ extension CbfClient {
19
19
. build ( wallet: wallet)
20
20
21
21
components. node. run ( )
22
+
23
+ // Send initial 20% progress after successful node startup
24
+ NotificationCenter . default. post (
25
+ name: NSNotification . Name ( " KyotoProgressUpdate " ) ,
26
+ object: nil ,
27
+ userInfo: [ " progress " : Float ( 0.2 ) ]
28
+ )
29
+
22
30
components. client. startBackgroundMonitoring ( )
23
31
24
32
return ( client: components. client, node: components. node)
@@ -30,19 +38,7 @@ extension CbfClient {
30
38
func startBackgroundMonitoring( ) {
31
39
Task {
32
40
while true {
33
- if let log = try ? await self . nextLog ( ) {
34
- // Parse specific sync stage messages
35
- if log. contains ( " Attempting to load headers from the database " ) {
36
- await MainActor . run {
37
- NotificationCenter . default. post (
38
- name: NSNotification . Name ( " KyotoProgressUpdate " ) ,
39
- object: nil ,
40
- userInfo: [ " progress " : Float ( 0.2 ) ]
41
- )
42
- }
43
- }
44
- }
45
-
41
+ if let log = try ? await self . nextLog ( ) { }
46
42
}
47
43
}
48
44
You can’t perform that action at this time.
0 commit comments