If you already have a Waves full node synced to the correct chain, you can import the blockchain data. Importing can be used as an option for more quickly obtaining the Waves blockchain.
The node must be stopped before importing the blockchain. If you already have some data in the node's
data folder, the import will continue to append new data from the blockchain's binary file. So, you may want to remove the existing data. The user should be careful while appending data because mixing data from different versions can lead to an erroneous state.
To import the blockchain and rebuild the state run the following command(Importing is a heavy operation and it could take a few hours to be completed):
java -cp waves-all-<version>.jar com.wavesplatform.Importer [configuration-file-name] [binary-file-name]
Mainnet: sudo -u waves importer /etc/waves/waves.conf [binary-file-name] Testnet: sudo -u waves-testnet importer-testnet /etc/waves-testnet/waves.conf [binary-file-name]
when importing, The user can specify the target height. If the parameter
height was not given, all blocks will be imported. To accomplish that, the user need to write the following commands:
java com.wavesplatform.Importer <config_file> <blockchain_file> <height>
Mainnet: sudo -u waves /usr/share/waves/bin/importer /etc/waves/waves.conf /path/to/mainnet-1234688 500 Testnet: sudo -u waves-testnet /usr/share/waves-testnet/bin/importer-testnet /etc/waves-testnet/waves.conf /path/to/testnet-1234688 500