State sync mainnet
The following seed nodes are to be used when configuring a full node for the mainnet. If you are looking for testnet 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_servers
field.
You can ask inside our discord for them.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 <rpc-address>/commit | jq "{height: .result.signed_header.header.height}"
Once you have the current chain height, get a height that is a little bit lower (200 blocks) than the current one.
To do this you can execute:curl -s <rpc-address>/commit?height=<your-height> | jq "{height: .result.signed_header.header.height, hash: .result.signed_header.commit.block_id.hash}"
# Example
# curl -s https://rpc-desmos.itastakers.com/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_height
andtrust_hash
values. Also, make sure they're the right values for the Desmos version you're starting to synchronize. You can check them here.
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 = "<rpc-address-1>:26657,<rpc-address-1>:26657"
trust_height = <block-height>
trust_hash = "<block-hash>"
trust_period = "336h0m0s"
Add peers to
~/.desmos/config/config.toml
file:persistent_peers = "<peer-node-id-1>@<peer-address-1>:26656,<peer-node-id-2>@<peer-node-address-2>:26656",...."