How To Deploy A Node Using A Snapshot
Goal
Deploy a node using its node state snapshot.
Steps
Obtain snapshot via API request:
$ curl --request POST --url http://<node>/v1/producer/create_snapshotExample:
$ curl --request POST --url http://127.0.0.1:8888/v1/producer/create_snapshotOutput
snaphot-<hash>.binThe file generated is the node state snapshot. This file alone will not be enough to restore your node. You will also need two more blocklog files. These are blocks.index andblocks.log. Before restoring a node, these files must be in the same place where they were generated.
To deploy node using the node state snapshot, you need to specify path to the snapshot in command line:
$ nodeos --snapshot <snapshot-directory>/snapshot-<hash>.binImportant
--snapshotis incompatible with--geneis-jsonand--genesisoptions as the snapshot contains genesis information.
Last updated