# Join Mainnet Quick Start
Bootstrap a 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 Tutorial
To enable state sync, visit an explorer (opens new window) 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 (opens new window).
Note: Make sure to set the
--home
flag when initializing and startinggaiad
if mounting quicksync data externally.
# Create Gaia Home & Config
Copy mkdir $HOME/.gaia/config -p# Start Quicksync Download
Node Operators can decide how much of historical state they want to preserve by choosing between Pruned
, Default
, and Archive
. See the Quicksync.io downloads (opens new window) for up to date snapshot sizes.
The download logs should look like the following
Copy 01/11 07:48:17 [NOTICE] Downloading 1 item(s) [#7cca5a 484MiB/271GiB(0%) CN:5 DL:108MiB ETA:42m41s]Completed Download Process:
Copy [#7cca5a 271GiB/271GiB(99%) CN:1 DL:77MiB] 01/11 08:32:19 [NOTICE] Download complete: /mnt/quicksync_01/cosmoshub-4-pruned.20220111.0310.tar.lz4 Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 7cca5a|OK | 105MiB/s|/mnt/quicksync_01/cosmoshub-4-pruned.20220111.0310.tar.lz4 Status Legend: (OK):download completed.