Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashmate): import existing Core data #1915

Merged
merged 11 commits into from
Jul 9, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export default function importCoreDataTaskFactory(docker, dockerPull, generateEn
task: async (ctx, task) => {
const doImport = await task.prompt({
type: 'toggle',
header: ` If you run a masternode on the same machine, you can
import your existing data so you don't need to sync node from scratch.
You current user must have read access to this directory.\n`,
header: ` If you already run a masternode on this server, you can
import your existing Dash Core data instead of syncing a new dashmate node from scratch.
Your current user account must have read access to this directory.\n`,
message: 'Import existing data?',
enabled: 'Yes',
disabled: 'No',
Expand All @@ -106,9 +106,9 @@ export default function importCoreDataTaskFactory(docker, dockerPull, generateEn
type: 'input',
header: ` Please enter path to your existing Dash Core data directory.

- You current user must have read access to this directory.
- Data directory usually ends with .dashcore and contains dash.conf and data files (what files we expect)
- If dash.conf stored separately you should copy or link this file to data dire\n`,
- Your current user must have read access to this directory.
- The data directory usually ends with .dashcore and contains dash.conf and the data files to import
- If dash.conf is stored separately, you should copy or link to this file in the data directory\n`,
message: 'Core data directory path',
validate: validateCoreDataDirectoryPathFactory(ctx.config),
});
Expand Down Expand Up @@ -197,8 +197,8 @@ export default function importCoreDataTaskFactory(docker, dockerPull, generateEn
// TODO: Wording needs to be updated
await task.prompt({
type: 'confirm',
header: ` You need to stop your existing node before your start a dashmate
node\n`,
header: ` Please stop your existing Dash Core node before starting the new dashmate-based
node ("dashmate start"). Also, disable any automatic startup services (e.g., cron, systemd) for the existing existing Dash Core installation.\n`,
shumkov marked this conversation as resolved.
Show resolved Hide resolved
message: 'Press any key to continue...',
default: ' ',
separator: () => '',
Expand Down
Loading