First of all, you need to check the latest Waves Release.
If you are updating from version 0.9.x just update the binaries and put voting for feature #3 in the configuration file.
In case of updating from earlier versions, please, follow these steps.
Stop the node.
To update your node faster you can download binary blockchain file (870k). Or export all existing blocks to a binary file. Please, read documentation about export and import of the blockchain.
sudo -u waves java -cp '/usr/share/waves/lib/*' -Dwaves.directory=/var/lib/waves com.wavesplatform.Exporter /etc/waves/waves.conf mainnet
You have to drop existing data
folder because now there will be LevelDB folder.
Please, read the updated documentation of Waves node configuration file
-
Move
peers.dat
out of thedata
directory. Change the value of the parameterwaves.network.file
to${waves.directory}"/peers.dat"
or remove it from your configuration file to use the default value which is the same. -
Remove obsolete parameters
waves.blockchain.blockchain-file
,waves.blockchain.state-file
,waves.blockchain.checkpoint-file
andwaves.blockchain.store-transactions-in-state
.
With LevelDB the recommended minimum value of Xmx
parameter
is 2GB, so you can update your memory settings in application.ini
file accordingly.
Install new version and start the import of blocks from the binary file using the following command.
sudo -u waves java -cp '/usr/share/waves/lib/*' -Dwaves.directory=/var/lib/waves com.wavesplatform.Importer /etc/waves/waves.conf mainnet-870000
Depending on the machine this process could take a few hours to complete.