cosmoshub-4 mainnet node
Prerequisites
Note: Make sure the Gaia CLI is installed.
Sync Options
To quickly get started, node operators can choose to sync via State Sync or by downloading a snapshot from Quicksync. State Sync works by replaying larger chunks of application state directly rather than replaying individual blocks or consensus rounds. Quicksync is a service provided courtesy of ChainLayer, and offers historical state of the chain available for download every 24 hours. For more advanced information on setting up a node, see the Sync Options section of the full Joining Mainnet TutorialState Sync
To enable state sync, visit an explorer to get a recent block height and corresponding hash. A node operator can choose any height/hash in the current bonding period, but as the recommended snapshot period is 1000 blocks, it is advised to choose something close to current height - 1000. Set these parameters in the code snippet below<BLOCK_HEIGHT> and <BLOCK_HASH>
For reference, the list of rpc_servers and persistent peers can be found in the cosmos hub chain-registry repo.
Quick Sync
Note: Make sure to set the--home flag when initializing and starting gaiad if mounting quicksync data externally.
Create Gaia Home & Config
Start Quicksync Download
Node Operators can decide how much of historical state they want to preserve by choosing betweenPruned, Default, and Archive. See the Quicksync.io downloads for up-to-date snapshot sizes.