-
Notifications
You must be signed in to change notification settings - Fork 28
Upgrade Mintlayer Node
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.
If you initially built your node from source, follow these steps to upgrade:
-
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 exampletags/v0.2.0
. -
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.
For those who installed Mintlayer using pre-compiled binaries:
-
Remove Old Binaries: Delete the old binary files from your system.
-
Download the New Binaries: Visit the Mintlayer Downloads page and download the latest version of the binaries.
If you're using Docker, you can force an update to the latest image tagged as 'latest':
-
Pull the Latest Docker Image:
docker pull mintlayer/mintlayer-core:latest
-
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.