cosmoshub-4 主网节点
前置条件
注意:请确保已安装 Gaia CLI。
同步选项
为了快速开始,节点运营者可以选择通过 State Sync 进行同步,或从 Quicksync 下载快照。State Sync 通过直接回放较大的应用状态分片来工作,而不是回放单个区块或共识轮次。Quicksync 是由 ChainLayer 提供的服务,每 24 小时提供一次可下载的链历史状态。有关设置节点的更高级信息,请参阅完整的加入主网教程中的“同步选项”部分。State Sync
要启用状态同步,请访问一个区块浏览器以获取最近的区块高度及其对应的哈希。节点运营者可以选择当前绑定周期内的任意高度/哈希,但由于推荐的快照周期为 1000 个区块,建议选择接近当前高度减 1000 的值。在下面的代码片段中设置这些参数:<BLOCK_HEIGHT> 和 <BLOCK_HASH>。
作为参考,rpc_servers 和 persistent peers 列表可在 cosmos hub chain-registry 仓库中找到。
Quick Sync
注意:如果将 quicksync 数据挂载到外部位置,请务必在初始化和启动gaiad 时设置 --home 标志。
创建 Gaia Home 和配置
开始下载 Quicksync
节点运营者可以根据希望保留的历史状态数量,在Pruned、Default 和 Archive 之间进行选择。请查看 Quicksync.io 下载页 以获取最新的快照大小。
Default
Pruned
Archive
解压
复制 Address Book Quicksync
启动 Gaia
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 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.