Skip to content

Commit 2f3672d

Browse files
committed
feat(Backup): Allow users to move to other device while keep the channels intact
1 parent d362f82 commit 2f3672d

File tree

4 files changed

+892
-344
lines changed

4 files changed

+892
-344
lines changed

locales/en.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,16 @@
418418
"views.Wallet.BalancePane.backup.title": "Back up your funds",
419419
"views.Wallet.BalancePane.backup.text": "Create a backup to never lose access to your bitcoin.",
420420
"views.Wallet.BalancePane.backup.action": "Start backup ->",
421+
"views.Wallet.BalancePane.migration.title": "Your wallet is locked",
422+
"views.Wallet.BalancePane.migration.text1": "This wallet is in channel migration state. Access is restricted to protect your funds.",
423+
"views.Wallet.BalancePane.migration.text2": "Please delete this wallet and restore it on a different device using your 24-word seed phrase and the exported channel backup file to bring back your channels.",
424+
"views.Wallet.BalancePane.migration.action.unlock": "I don't want to migrate",
425+
"views.Wallet.BalancePane.migration.alert.title": "Cancel Migration?",
426+
"views.Wallet.BalancePane.migration.alert.text1": "DANGER: Only proceed if you have NOT imported your channel backup on another device.",
427+
"views.Wallet.BalancePane.migration.alert.text2": "Using the same channels on two devices simultaneously will result in FORCE CLOSURE OF YOUR CHANNELS.",
428+
"views.Wallet.BalancePane.migration.alert.text3": "Are you sure you want to unlock this wallet?",
429+
"views.Wallet.BalancePane.migration.alert.cancel": "Keep Locked",
430+
"views.Wallet.BalancePane.migration.alert.confirm": "Unlock Wallet",
421431
"views.Wallet.Channels.local": "Local",
422432
"views.Wallet.Channels.remote": "Remote",
423433
"views.Wallet.Channels.noChannels": "No Channels",
@@ -873,6 +883,18 @@
873883
"views.Tools.watchtowers.numSessions": "Number of Sessions",
874884
"views.Tools.watchtowers.serverPubkey": "Server pubkey",
875885
"views.Tools.watchtowers.clientNotActive": "Watchtower client is not active. Please restart your LND node with the --wtclient.active flag to enable watchtower functionality.",
886+
"views.Tools.migration.export": "Export Channels to other device",
887+
"views.Tools.migration.import": "Import Channels",
888+
"views.Tools.migration.export.title": "Export Channels Backup",
889+
"views.Tools.migration.export.text1": "This will export your active channel database. You can use this file to restore your channels on a different device.",
890+
"views.Tools.migration.export.text2": "WARNING: After exporting, this wallet will be locked, as restoring the same wallet on a new device will force close the existing channels.",
891+
"views.Tools.migration.databaseNotFound": "Could not find wallet database.",
892+
"views.Tools.migration.export.confirm": "Export",
893+
"views.Tools.migration.export.success": "Backup Successful",
894+
"views.Tools.migration.import.success": "Import Successful",
895+
"views.Tools.migration.export.success.text": "Your channel database has been exported. Please restart the app to apply the configuration and lock the wallet.",
896+
"views.Tools.migration.import.success.text1": "Your channel database has been restored. Please restart the app to initialize your channels.",
897+
"views.Tools.migration.import.success.text2": "Please note: It may take several minutes for your channels to sync and come back online.",
876898
"views.WithdrawalRedemption.redeeming": "Redeeming withdrawal request",
877899
"views.WithdrawalRedemption.success": "Withdrawal request redemption successful",
878900
"views.Tools.ErrorCreateWithdrawalRequest": "Error creating withdrawal request",
@@ -2033,4 +2055,4 @@
20332055
"backends.NWC.permissionDenied": "Permission denied for this operation",
20342056
"androidNotification.nwcRunningBackground": "Nostr Wallet Connect is running in the background",
20352057
"androidNotification.nwcShutdown": "Stop Service"
2036-
}
2058+
}

0 commit comments

Comments
 (0)