State sync
‘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.
List of networks provided
Please refer to the genesis file, the seed and the github link according to your choice of network.
Initialize the firmachain
Initialize the node and designate the name of the moniker.
Rename the moniker
Before activating the chain, you can modify the name of the node using the moniker field at ~/.firmachain/config/config.toml.
Setup minimum gas prices
Modify minimum gas fee.
Set seeds
FirmaChain discloses information on seed nodes for the purpose of P2P connection.
Download genesis.json file
After downloading the genesis.json file of the network you are planning to join, please swap the file with ~/.firmachain/config/genesis.json.
Set trust datas
If you do not 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.
A method other than JQ
Use this method if you don't want to use a Docker image or install JQ.
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.)
Option
You can start firmachain using Cosmovisor or System Daemon.
Last updated