Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.91 KB

upgrading.md

File metadata and controls

57 lines (47 loc) · 1.91 KB

Upgrading

  1. First of all, you need to check the latest Waves Release. and choose the latest Mainnet release.
  2. Download the DEB or Jar file depending on your operating system.
  3. Upgrade DEB by running the following command:
    sudo dpkg -i waves_X.Y.Z_all.deb
  4. Or upgrade JAR by copying the new version over the old one
  5. Check the release notes. If there are new features to vote and activate, you will need to include that in the config.

Upgrading the Node

Basically, the node should be upgraded as follows:

  1. Stop the node
  2. 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.
  3. Update node's executables
  4. Import binary file
  5. Start the node

Upgrading the Node to the Latest Version on Linux

  1. Stop the Node by executing the following command:
    sudo systemctl stop waves
  2. 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
  3. Remove data folder:
    sudo rm -rdf /var/lib/waves/data
  4. Install the new version of the node:
    sudo dpkg -i waves_X.Y.Z_all.deb
  5. Import blocks from the binary file:
    sudo -u waves importer /etc/waves/waves.conf /usr/share/waves/mainnet-[some height]
  6. After import start the node:
    sudo systemctl start waves
  7. Do not forget to remove binary blockchain files if you don't need them any more:
    sudo rm /usr/share/waves/mainnet-[some height]

Update the Configuration

Please, read the updated documentation of Waves node configuration file