Skip to content

Commit 08e6b12

Browse files
committed
use Info::NewChainHeight
1 parent 99b85ae commit 08e6b12

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

BDKSwiftExampleWallet/Extensions/BDK+Extensions/CbfClient+Extensions.swift

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -41,39 +41,6 @@ extension CbfClient {
4141
userInfo: ["progress": Float(0.2)]
4242
)
4343
}
44-
} else if log.contains("]: headers") {
45-
await MainActor.run {
46-
NotificationCenter.default.post(
47-
name: NSNotification.Name("KyotoProgressUpdate"),
48-
object: nil,
49-
userInfo: ["progress": Float(0.4)]
50-
)
51-
}
52-
} else if log.contains("Chain updated") {
53-
let components = log.components(separatedBy: " ")
54-
if components.count >= 4,
55-
components[0] == "Chain" && components[1] == "updated",
56-
let height = UInt32(components[2])
57-
{
58-
await MainActor.run {
59-
NotificationCenter.default.post(
60-
name: NSNotification.Name("KyotoChainHeightUpdate"),
61-
object: nil,
62-
userInfo: ["height": height]
63-
)
64-
}
65-
}
66-
67-
if !isConnected {
68-
isConnected = true
69-
await MainActor.run {
70-
NotificationCenter.default.post(
71-
name: NSNotification.Name("KyotoConnectionUpdate"),
72-
object: nil,
73-
userInfo: ["connected": true]
74-
)
75-
}
76-
}
7744
}
7845

7946
if log.contains("Established an encrypted connection") && !isConnected {

0 commit comments

Comments
 (0)