‘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.
Network
chain-id
genesis.json
seeds
github
Mainnet
colosseum-1
Testnet
imperium-4
Initialize the firmachain
Initialize the node and designate the name of the moniker.
firmachaindinit<moniker-name>--chain-id<chain-id>
Rename the moniker
Before activating the chain, you can modify the name of the node using the moniker field at ~/.firmachain/config/config.toml.
vim.firmachain/config/config.toml# A custom human readable name for this nodemoniker="<moniker-name>"
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.)
firmachaind start
Discovering snapshots for 15s
Discovered new snapshot height=3000 format=1 hash=0F14A473
Discovered new snapshot height=2000 format=1 hash=C6209AF7
Option
You can start firmachain using Cosmovisor or System Daemon.