Version 0.9.2 (Mainnet & Testnet)
Release highlights
This release is not mandatory. The functionality is the same as in version 0.8.12.
-
LevelDB data backend goes to Mainnet. Less memory consumption. Less disk space for the blockchain.
-
Import and export of blockchain using new built-in utilities.
-
Minor changes to the configuration file.
-
Minor bugs fixed
How to update
Prepare binary blockchain file
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
Drop the data
You have to drop existing data
folder because now there will be LevelDB folder.
Update the configuration
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.
Import the binary file to LevelDB
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.