- First of all, you need to check the latest Waves Release. and choose the latest Mainnet release.
- Download the DEB or Jar file depending on your operating system.
- Upgrade DEB by running the following command:
sudo dpkg -i waves_X.Y.Z_all.deb
- Or upgrade JAR by copying the new version over the old one
- Check the release notes. If there are new features to vote and activate, you will need to include that in the config.
Basically, the node should be upgraded as follows:
- Stop the node
- Export all existing blocks in the blockchain to a binary file. Please read the documentation about export and import of the blockchain. or download the binary file.
- Update node's executables
- Import binary file
- Start the node
- Stop the Node by executing the following command:
sudo systemctl stop waves
- After stopping the node execute following command to export existing blocks to a binary file:
sudo -u waves exporter /etc/waves/waves.conf /usr/share/waves/mainnet
- Remove data folder:
sudo rm -rdf /var/lib/waves/data
- Install the new version of the node:
sudo dpkg -i waves_X.Y.Z_all.deb
- Import blocks from the binary file:
sudo -u waves importer /etc/waves/waves.conf /usr/share/waves/mainnet-[some height]
- After import start the node:
sudo systemctl start waves
- Do not forget to remove binary blockchain files if you don't need them any more:
sudo rm /usr/share/waves/mainnet-[some height]
Please, read the updated documentation of Waves node configuration file