- First of all, you need to check the latest Waves Release. and choose the latest Mainnet release.
Second, identify your current version, which is logged in /var/log/waves/waves.log upon the node start or can be checked:
a. If you are using DEB package, then execute:
# dpkg -l waves
b. If you are running JAR file, check the version in its name.
Go through the release notes from your current version to the latest one and check if it is required to rebuild the state database. If required then export existing blocks.
- Stop the Node by executing the following command:
# sudo systemctl stop waves
- After stopping the Node execute the following command to export existing blocks to a binary file:
# sudo -u waves waves export -c /etc/waves/waves.conf -o [output-file-name]
- Remove data folder:
# sudo rm -rdf /var/lib/waves/data
- Download the DEB or JAR file depending on your operating system.
- Upgrade JAR by copying the new version over the old one or upgrade DEB by running the following command:
# sudo dpkg -i waves_X.Y.Z_all.deb
- Check the release notes. If there are new features to vote and activate, you will need to include that in the config.
- If required Import the blockchain and start the node.
- Execute the following command to import blocks from the binary file :
# sudo -u waves waves import -c /etc/waves/waves.conf -i [input-file-name]
- After import start the node:
# sudo systemctl start waves
Please, read the updated documentation of Waves node configuration file.