From 5649cbab1ba0c76137fad3e7076f4773df5e2d15 Mon Sep 17 00:00:00 2001 From: jvsena42 Date: Wed, 18 Mar 2026 08:22:42 -0300 Subject: [PATCH] fix: comment out fetchOrphanedChannelMonitorsIfNeeded temporarily --- Bitkit/ViewModels/WalletViewModel.swift | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Bitkit/ViewModels/WalletViewModel.swift b/Bitkit/ViewModels/WalletViewModel.swift index 6ea9d86b..b1a95ae0 100644 --- a/Bitkit/ViewModels/WalletViewModel.swift +++ b/Bitkit/ViewModels/WalletViewModel.swift @@ -141,20 +141,20 @@ class WalletViewModel: ObservableObject { } // If no local migration data, try fetching from RN remote backup (one-time) - if channelMigration == nil { - let (remoteMigration, allRetrieved) = await fetchOrphanedChannelMonitorsIfNeeded(walletIndex: walletIndex) - if let remoteMigration { - channelMigration = ChannelDataMigration( - // don't overwrite channel manager, we only need the monitors for the sweep - channelManager: nil, - channelMonitors: remoteMigration.channelMonitors.map { [UInt8]($0) } - ) - MigrationsService.shared.pendingChannelMigration = nil - } - if allRetrieved { - MigrationsService.shared.isChannelRecoveryChecked = true - } - } + // if channelMigration == nil { + // let (remoteMigration, allRetrieved) = await fetchOrphanedChannelMonitorsIfNeeded(walletIndex: walletIndex) + // if let remoteMigration { + // channelMigration = ChannelDataMigration( + // // don't overwrite channel manager, we only need the monitors for the sweep + // channelManager: nil, + // channelMonitors: remoteMigration.channelMonitors.map { [UInt8]($0) } + // ) + // MigrationsService.shared.pendingChannelMigration = nil + // } + // if allRetrieved { + // MigrationsService.shared.isChannelRecoveryChecked = true + // } + // } await runLegacyNetworkGraphCleanupIfNeeded()