Restore snapshot with full state history
Goal
This procedure restores an existing snapshot with full history, so the node can become active in the blockchain.
Before you begin
- Make sure Wire core is installed.
- Learn about Using Nodeop.
- Get familiar with state_history_plugin.
Steps
-
Get the following:
- A portable snapshot (
data/snapshots/snapshot-xxxxxxx.bin
) - The contents of
data/state-history
- Optional: a block log which includes the block the snapshot was taken at. Do not include
data/blocks/reversible
.
- A portable snapshot (
-
Make sure
data/state
does not exist -
Start
nodeop
with the--snapshot
option, and the options listed in thestate_history_plugin
. -
Do not stop
nodeop
until it has received at least 1 block from the network, or it won't be able to restart.
Notes
If nodeop
fails to receive blocks from the network, then try the above using net_api_plugin
. Use clio net disconnect
and clio net connect
to reconnect nodes which timed out.
[[caution | Caution when using net_api_plugin
]]
| Either use a firewall to block access to http-server-address
, or change it to localhost:8888
to disable remote access.