Skip to content

Upgrade Mintlayer Node

Enrico Rubboli edited this page Nov 7, 2023 · 3 revisions

Upgrading your Mintlayer node is essential for maintaining network security, performance, and accessing new features. Below are the methods for upgrading your node, depending on your initial installation method.

1. Upgrading from Source

If you initially built your node from source, follow these steps to upgrade:

Steps:

  1. Update Your Git Repository: Open your terminal and navigate to your Mintlayer node directory. Then execute:

    git fetch --all --tags
    git checkout tags/<latest_tag>

    Replace <latest_tag> with the latest release tag and <new_branch_name> with a name for the new branch, for example tags/v0.2.0.

  2. Rebuild the Node: Once you have checked out the new tag, rebuild your node. Typically, this can be done using a build command like:

    cargo build --releasecargo build --bin node-daemon --bin wallet-cli

    Make sure both the node and the wallet components are updated accordingly.

2. Upgrading from Binaries

For those who installed Mintlayer using pre-compiled binaries:

Steps:

  1. Remove Old Binaries: Delete the old binary files from your system.

  2. Download the New Binaries: Visit the Mintlayer Downloads page and download the latest version of the binaries.

3. Upgrading with Docker

If you're using Docker, you can force an update to the latest image tagged as 'latest':

Steps:

  1. Pull the Latest Docker Image:

    docker pull mintlayer/mintlayer-core:latest
  2. Restart the Container: Stop your current Mintlayer container, and start a new one using the latest image:

    docker stop <your_container_name>
    docker rm <your_container_name>
    docker run --name <your_container_name> -d mintlayer/mintlayer-core:latest

    Replace <your_container_name> with the name of your Docker container.

Remember to back up your wallet and data before proceeding with the upgrade. If you encounter any issues, please consult the Mintlayer documentation or reach out to the support team for assistance.

Clone this wiki locally