State sync testnet
The following seed nodes are to be used when configuring a full node for the testnet. If you are looking for mainnet seed nodes, please refer to this instead.
In order to use this feature, you will have to edit a couple of things inside your ~/.desmos/config/config.toml file,
under the statesync section:
Enable state sync by setting
enable=true;Set the RPC addresses from where to get the snapshots using the
rpc_serversfield toseed-4.morpheus.desmos.network:26657,seed-5.morpheus.desmos.network:26657.
These are two of our fullnodes that are set up to create periodic snapshots every 600 blocks;Get a trusted chain height, and the associated block hash. To do this, you will have to:
Get the current chain height by running:
curl -s http://seed-4.morpheus.desmos.network:26657/commit | jq "{height: .result.signed_header.header.height}"Once you have the current chain height, get a height that is a little lower (200 blocks) than the current one.
To do this you can execute:curl -s http://seed-4.morpheus.desmos.network:26657/commit?height=<your-height> | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
# Example
# curl -s http://seed-4.morpheus.desmos.network:26657/commit?height=100000 | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
Now that you have a trusted height and block hash, use those values as the
trust_heightandtrust_hashvalues. Also, make sure they're the right values for the Desmos version you're starting to synchronize:State sync height range Desmos version 0 - 1235764v0.17.01235765 - 1415529v0.17.41415530 - 2121235v0.17.62121236 - 2226899v1.0.42226900 - 2589024v2.0.02589025 - 2643234v2.1.02643235 - 2756259v2.2.02756260 - 3130831v2.3.02756260 - 3130831v2.3.03130831 - 5842610v2.3.15842610 - 6233130v3.2.06233130 - 6339185v4.0.1> 6339185v4.1.0
Here is an example of what the statesync section of your ~/.desmos/config/config.toml file should look like in the end (the trust_height and trust_hash should contain your values instead):
enable = true
rpc_servers = "seed-4.morpheus.desmos.network:26657,seed-5.morpheus.desmos.network:26657"
trust_height = 16962
trust_hash = "E8ED7A890A64986246EEB02D7D8C4A6D497E3B60C0CAFDDE30F2EE385204C314"
trust_period = "336h0m0s"