From 2f2ba104230e375bec201801a0e7895039098947 Mon Sep 17 00:00:00 2001 From: pshenmic Date: Mon, 29 Jul 2024 21:09:56 +0700 Subject: [PATCH] fix(dashmate): remove `dash-cli` from protx registration instructions (#2018) --- .../registerMasternodeWithCoreWallet.js | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/packages/dashmate/src/listr/tasks/setup/regular/registerMasternode/registerMasternodeWithCoreWallet.js b/packages/dashmate/src/listr/tasks/setup/regular/registerMasternode/registerMasternodeWithCoreWallet.js index dda9811bcf..1b001be611 100644 --- a/packages/dashmate/src/listr/tasks/setup/regular/registerMasternode/registerMasternodeWithCoreWallet.js +++ b/packages/dashmate/src/listr/tasks/setup/regular/registerMasternode/registerMasternodeWithCoreWallet.js @@ -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