Update a Running Node
Procedure
To update an already running node (wheter it is an RPC node, boot node or validator node) check the releases page and note the latest tag latest_tag
.
Open a terminal, navigate to the root directory of project zkVerify
and execute the commands:
cd zkVerify
git fetch
git checkout latest_tag
It is recommended to use the latest tag in order to run the latest, most updated software. Check the releases page to find the latest tag and if needed, update accordingly the command provided above (e.g latest_tag
-> x.x.x
).
After checking out the new source code version, build it with:
cargo build -p mainchain --profile production
After the building process has finished, stop your currently running node by pressing ctrl+c
in the associated terminal and restart it with target/production/zkv-node
using the same command-line arguments you previously used to start your node.
Check the new source code version is used by inspecting the log starting with ✌️ version
(it is located in the very first log lines).