State Sync
Instruction
‘State Sync’ feature was included in the recent release of the tendermint core v0.34 update. The feature allows users to look up information on the most recent credible block height instead of having to look up all block information from the past. The ‘state sync’ feature reduces the time required to synchronize the network to a matter of minutes.
State syncing a node
FirmaChain is structured to create a status sync snapshot of a portion of its nodes to allow a new node to join the network using the ‘State Sync’ feature. In order to join the network through ‘State Sync’ the following information must be retrieved in advance.
At least 2 available RPC servers.
A trusted height.
The block ID hash of the trusted height.
If you don't have a jq package, please install the jq package.
By running the command below, you will be able to retrieve data on the ‘trust height’ and ‘trust_hash’ via RPC.
Following is a sample of the retrieved data.
Please set the chain to allow ‘State Sync’ feature and put in the retrieved data in the config.toml file.
Now we are all set. Please start the chain. Once you start the chain, it will automatically search and restore the status sync snapshot from the network. (This process takes approximately 2 to 5 minutes.)
Last updated