Documentation
Search…
How To Deploy A Node Using A Snapshot

Goal

Deploy a node using its node state snapshot.

Steps

Obtain snapshot via API request:
1
$ curl --request POST --url http://<node>/v1/producer/create_snapshot
Copied!
Example:
1
$ curl --request POST --url http://127.0.0.1:8888/v1/producer/create_snapshot
Copied!
Output
1
snaphot-<hash>.bin
Copied!
The 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:
1
$ nodeos --snapshot <snapshot-directory>/snapshot-<hash>.bin
Copied!
Important
--snapshot is incompatible with --geneis-json and --genesis options as the snapshot contains genesis information.
Last modified 1yr ago
Copy link
Contents
Goal
Steps