Skip to content

Commit a150549

Browse files
jvsena42piotr-iohk
authored andcommitted
fix: comment out fetchOrphanedChannelMonitorsIfNeeded temporarily
1 parent b812096 commit a150549

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

Bitkit/ViewModels/WalletViewModel.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,20 @@ class WalletViewModel: ObservableObject {
138138
}
139139

140140
// If no local migration data, try fetching from RN remote backup (one-time)
141-
if channelMigration == nil {
142-
let (remoteMigration, allRetrieved) = await fetchOrphanedChannelMonitorsIfNeeded(walletIndex: walletIndex)
143-
if let remoteMigration {
144-
channelMigration = ChannelDataMigration(
145-
// don't overwrite channel manager, we only need the monitors for the sweep
146-
channelManager: nil,
147-
channelMonitors: remoteMigration.channelMonitors.map { [UInt8]($0) }
148-
)
149-
MigrationsService.shared.pendingChannelMigration = nil
150-
}
151-
if allRetrieved {
152-
MigrationsService.shared.isChannelRecoveryChecked = true
153-
}
154-
}
141+
// if channelMigration == nil {
142+
// let (remoteMigration, allRetrieved) = await fetchOrphanedChannelMonitorsIfNeeded(walletIndex: walletIndex)
143+
// if let remoteMigration {
144+
// channelMigration = ChannelDataMigration(
145+
// // don't overwrite channel manager, we only need the monitors for the sweep
146+
// channelManager: nil,
147+
// channelMonitors: remoteMigration.channelMonitors.map { [UInt8]($0) }
148+
// )
149+
// MigrationsService.shared.pendingChannelMigration = nil
150+
// }
151+
// if allRetrieved {
152+
// MigrationsService.shared.isChannelRecoveryChecked = true
153+
// }
154+
// }
155155

156156
await runLegacyNetworkGraphCleanupIfNeeded()
157157

0 commit comments

Comments
 (0)