- 跨链安全(ICS)测试网:
provider - 发布测试网:
theta-testnet-001
如何加入
你可以使用以下任一方式,通过一条命令完成测试网节点的设置:- 运行 testnets 仓库中的 shell 脚本
- 运行 cosmos-ansible 仓库中的 Ansible playbook
创建验证者(可选)
如果你想在任一测试网中创建验证者,请通过 Discord 水龙头频道 申请代币,并按照本指南进行操作。如果你要在发布测试网中创建验证者,则可以忽略关于加入在线消费者链的说明。升级你的节点
如果你已经有一个完成同步的节点,并希望参与预定的测试网软件升级,请按照以下说明操作。 当链达到软件升级提案中指定的升级区块高度时,链二进制程序将停止运行,并要求启动新版本二进制程序(系统日志中会显示ERR UPGRADE "<Upgrade name>" NEEDED at height: XXXX 或类似信息)。
你可以通过以下三种方式更新二进制程序:
- 不使用 Cosmovisor:你必须在升级前提前构建或下载新的二进制程序。当链二进制程序在升级高度停止后:
- 使用
systemctl stop gaiad.service停止 gaiad 服务。 - 构建或下载新的二进制程序,并替换现有的
~/go/bin中对应文件。 - 使用
systemctl start gaiad.service启动 gaiad 服务。
- 使用 Cosmovisor:你必须在升级前提前构建或下载新的二进制程序,并将其复制到相应目录。
- 使用 Cosmovisor:使用自动下载功能,前提是提案中包含适用于你系统架构的二进制程序。
DAEMON_ALLOW_DOWNLOAD_BINARIES 被设置为 false,Cosmovisor 将在与软件升级提案中指定的升级名称相匹配的目录中查找新的二进制程序。
Cosmovisor 升级示例
以v17 升级为例,预期的目录结构如下:
current 的符号链接更新到对应的升级目录,并重新启动。几分钟后,节点应开始使用新的二进制程序同步区块。
Visit the testnets repo for the most up-to-date information on the currently available public testnets:
- Interchain Security (ICS) Testnet:
provider - Release Testnet:
theta-testnet-001
How to Join
You can set up a testnet node with a single command using one of the options below:- Run a shell script from the testnets repo
- Run an Ansible playbook from the cosmos-ansible repo
Create a Validator (Optional)
If you want to create a validator in either testnet, request tokens through the faucet Discord channel and follow the this guide. If you are creating a validator in the Release Testnet, you can disregard the instructions about joining live consumer chains.Upgrading Your Node
Follow these instructions if you have a node that is already synced and wish to participate in a scheduled testnet software upgrade. When the chain reaches the upgrade block height specified by a software upgrade proposal, the chain binary will halt and expect the new binary to be run (the system log will showERR UPGRADE "<Upgrade name>" NEEDED at height: XXXX or something similar).
There are three ways you can update the binary:
- Without Cosmovisor: You must build or download the new binary ahead of the upgrade. When the chain binary halts at the upgrade height:
- Stop the gaiad service with
systemctl stop gaiad.service. - Build or download the new binary, replacing the existing
~/go/binone. - Start the gaiad service with
systemctl start gaiad.service.
- With Cosmovisor: You must build or download the new binary and copy it to the appropriate folder ahead of the upgrade.
- With Cosmovisor: Using the auto-download feature, assuming the proposal includes the binaries for your system architecture.
DAEMON_ALLOW_DOWNLOAD_BINARIES is set to false, Cosmovisor will look for the new binary in a folder that matches the name of the upgrade specified in the software upgrade proposal.
Cosmovisor Upgrade Example
Using thev17 upgrade as an example, the expected folder structure would look as follows:
current to the relevant upgrade folder, and restart. After a few minutes, the node should start syncing blocks using the new binary.