State Sync allows a new node to join the network by fetching a snapshot of the application state at a recent height instead of fetching and replaying all historical blocks. Since the application state is generally much smaller than the blocks, and restoring it is much faster than replaying blocks, this can reduce the time to sync with the network from days to minutes.
Our `app.toml` settings related to state-sync is as follows
If the chain does not support copy of the wasm folder, you can download it manually. We have taken out the cache sub-folder to ensure the wasm folder is compatible for all CPUs.
# Remove the empty wasm folder if you have an empty one
rm -r ~/.mantrachain/wasm
# Get our wasm folder
wget -O mantra_wasmonly.tar.lz4 https://snapshots.tienthuattoan.com/testnet/mantra/mantra_wasmonly.tar.lz4
# Extract the wasm folder into the right place
lz4 -c -d mantra_wasmonly.tar.lz4 | tar -x -C $HOME/.mantrachain