Skip to content

Commit b85d9de

Browse files
committed
fix: block height not showing on sync sometimes for kyoto
1 parent 9976389 commit b85d9de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

BDKSwiftExampleWallet/View Model/WalletViewModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ class WalletViewModel {
157157
self.currentBlockHeight = height
158158
// Receiving chain height implies we have peer connectivity
159159
self.isKyotoConnected = true
160+
// Ensure UI reflects syncing as soon as we see chain activity
161+
if self.walletSyncState == .notStarted { self.walletSyncState = .syncing }
160162
// Auto-refresh wallet data when Kyoto receives new blocks
161163
self.getBalance()
162164
self.getTransactions()

BDKSwiftExampleWallet/View/Home/ActivityHomeHeaderView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct ActivityHomeHeaderView: View {
2626
Spacer()
2727

2828
HStack {
29-
if needsFullScan {
29+
if needsFullScan && !isKyotoClient {
3030
Text("\(inspectedScripts)")
3131
.padding(.trailing, -5.0)
3232
.fontWeight(.semibold)

0 commit comments

Comments
 (0)