â™ģī¸Update Masternode

Masternode Update Guide

Masternode Update Guide

This guide provides instructions for updating a masternode in two scenarios: Regular Node Update and Lite Node Update. Follow the steps for the correct type of update for your masternode.


1. Prerequisites

Before you begin, ensure you have the following:

  • ProTxHash: The unique identifier for your masternode.

  • IP and Port: The new IP address and port of your masternode.

  • BLS Private Key: The BLS (Basic Long-term Secret) private key associated with your masternode.

You will need to use the following commands in your Blocx wallet CLI (Command Line Interface).


2. Regular Node Update

The protx update_service command is used for a regular masternode update. This updates the service details, such as IP address and port, for a regular node.

Command:

blocx-cli protx update_service "proTxHash" "ipAndPort" Your_BLS_PrivateKey

Example:

blocx-cli protx update_service "0123456701234567012345670123456701234567012345670123456701234567" "1.2.3.4:12972" 5a2e15982e62f1e0b7cf9783c64cf7e3af3f90a52d6c40f6f95d624c0b1621cd

Steps for Regular Node Update:

  1. Open the Blocx wallet and access the terminal or command line interface.

  2. Enter the protx update_service command, replacing the following placeholders:

    • proTxHash: Your masternode's ProTxHash.

    • ipAndPort: The new IP address and port (format: IP:Port).

    • Your_BLS_PrivateKey: Your masternode's BLS private key.

  3. Run the command to update the masternode.


3. Lite Node Update

The protx update_service_lite command is used for a lite masternode update. This is typically used when you are running a masternode that requires fewer resources.

Command:

blocx-cli protx update_service_lite "proTxHash" "ipAndPort" Your_BLS_PrivateKey

Example:

blocx-cli protx update_service_lite "0123456701234567012345670123456701234567012345670123456701234567" "1.2.3.4:12972" 5a2e15982e62f1e0b7cf9783c64cf7e3af3f90a52d6c40f6f95d624c0b1621cd

Steps for Lite Node Update:

  1. Open the Blocx wallet and access the terminal or command line interface.

  2. Enter the protx update_service_lite command, replacing the placeholders:

    • proTxHash: Your masternode's ProTxHash.

    • ipAndPort: The new IP address and port.

    • Your_BLS_PrivateKey: Your BLS private key.

  3. Run the command to update the masternode.


4. Confirmation of Update

After running the respective command, you can confirm that the masternode update was successful by checking the masternode status with the following command:

blocx-cli masternode status

This will display the current status of your masternode and verify if the update was applied successfully.


5. Common Errors and Troubleshooting

  • Ensure that the IP address and port are in the correct format (IP:Port).

  • Double-check your BLS private key to avoid any input errors.

  • Verify that your Blocx wallet is fully synchronized before running the update commands.

  • If the update fails, check the node logs for error messages and ensure your masternode is properly configured.

By following these steps, you can successfully update your masternode, whether it's a regular or lite node.

Last updated