You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
box.setText(tr("Are you sure you wish to migrate the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
442
+
box.setInformativeText(tr("Migrating the wallet will convert this wallet to one or more descriptor wallets. A new wallet backup will need to be made.\n"
443
+
"If this wallet contains any watchonly scripts, a new wallet will be created which contains those watchonly scripts.\n"
444
+
"If this wallet contains any solvable but not watched scripts, a different and new wallet will be created which contains those scripts.\n\n"
445
+
"The migration process will create a backup of the wallet before migrating. This backup file will be named "
446
+
"<wallet name>-<timestamp>.legacy.bak and can be found in the directory for this wallet. In the event of "
447
+
"an incorrect migration, the backup can be restored with the \"Restore Wallet\" functionality."));
auto res{node().walletLoader().migrateWallet(name, passphrase)};
469
+
470
+
if (res) {
471
+
m_success_message = tr("The wallet '%1' was migrated successfully.").arg(GUIUtil::HtmlEscape(res->wallet->getWalletName()));
472
+
if (res->watchonly_wallet_name) {
473
+
m_success_message += tr(" Watchonly scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(res->watchonly_wallet_name.value()));
474
+
}
475
+
if (res->solvables_wallet_name) {
476
+
m_success_message += tr(" Solvable but not watched scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(res->solvables_wallet_name.value()));
0 commit comments