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

fix(dashmate): remove dash-cli from protx registration instructions #2018

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,38 +222,16 @@ export default function registerMasternodeWithCoreWalletFactory(createIpAndPorts

let command;
if (ctx.isHP) {
command = `dash-cli protx register_evo \\
${state.collateral.txId} \\
${state.collateral.outputIndex} \\
${state.ipAndPorts.ip}:${state.ipAndPorts.coreP2PPort} \\
${state.keys.ownerAddress} \\
${operatorPublicKeyHex} \\
${state.keys.votingAddress} \\
${state.operator.rewardShare} \\
${state.keys.payoutAddress} \\
${deriveTenderdashNodeId(state.platformNodeKey)} \\
${platformP2PPort} \\
${platformHTTPPort}`;
command = `protx register_evo ${state.collateral.txId} ${state.collateral.outputIndex} ${state.ipAndPorts.ip}:${state.ipAndPorts.coreP2PPort} ${state.keys.ownerAddress} ${operatorPublicKeyHex} ${state.keys.votingAddress} ${state.operator.rewardShare} ${state.keys.payoutAddress} ${deriveTenderdashNodeId(state.platformNodeKey)} ${platformP2PPort} ${platformHTTPPort}`;
} else {
command = `dash-cli protx register \\
${state.collateral.txId} \\
${state.collateral.outputIndex} \\
${state.ipAndPorts.ip}:${state.ipAndPorts.coreP2PPort} \\
${state.keys.ownerAddress} \\
${operatorPublicKeyHex} \\
${state.keys.votingAddress} \\
${state.operator.rewardShare} \\
${state.keys.payoutAddress}`;
command = `protx register ${state.collateral.txId} ${state.collateral.outputIndex} ${state.ipAndPorts.ip}:${state.ipAndPorts.coreP2PPort} ${state.keys.ownerAddress} ${operatorPublicKeyHex} ${state.keys.votingAddress} ${state.operator.rewardShare} ${state.keys.payoutAddress}`;
}

// Wrap the command to fit the terminal width (listr uses new lines to wrap the text)
if (!ctx.isVerbose) {
command = command.replace(/\\/g, '');
command = wrapAnsi(command, process.stdout.columns - 3, {
hard: true,
trim: false,
});
command = command.replace(/\n/g, '\\\n');
}

// TODO: We need to give more info on how to run this command
Expand Down
Loading