KYVE测试网区块链节点搭建
source link: https://mirror.xyz/ericet.eth/oKoxTpptRjAxjiwbGJk0cYquz4rOpI4g8JO40Tc4UKc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
KYVE目前进行测试网测试(https://app.kyve.network/#/)。和其他Cosmos生态的节点不一样的是,KYVE有2种节点模式。
一种叫Protocol Node, 负责验证数据并上传存储。这种验证节点运行的配置不需要太高,但需要绑定Arweave,并且每个月需要大概0.5 AR
另外一种就是我们比较熟悉的验证人节点(Chain Node), Kyve的网络就是通过这些节点运行
这里介绍一下Chain Node的搭建。官方教程: https://docs.kyve.network/intro/chain-node.html
下载节点运行程序
wget https://github.com/KYVENetwork/chain/releases/download/v0.0.1/chain_linux_amd64.tar.gz
tar -xvzf chain_linux_amd64.tar.gz
./chaind init <moniker>--chain-id korellia
创建key
./chaind keys add <your key name>
获取genesis.json
wget https://github.com/KYVENetwork/chain/releases/download/v0.0.1/genesis.json
mv genesis.json ~/.kyve/config/genesis.json
添加Seeds
export SEEDS="[email protected]:26656"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" ~/.kyve/config/config.toml
创建背后运行服务
tee <<EOF > /dev/null /etc/systemd/system/kyved.service
[Unit]
Description=KYVE Chain-Node daemon
After=network-online.target
[Service]
User=$USER
ExecStart=/$USER/chaind start
Restart=on-failure
RestartSec=3
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
EOF
创建好后,更新,开启节点服务
sudo -S systemctl daemon-reload
sudo -S systemctl enable kyved.service
sudo -S systemctl start kyved.service
上面的命令运行好后,你的节点就开启了
用下面命令查看服务:
查看服务状态
systemctl status kyved
查看服务日志
journalctl -u kyved -f
获得测试币
官网https://app.kyve.network/#/faucet 有不同的方式获得测试币
上线验证人
等你的节点同步好后,可以运行下面命令上线你的验证人:
./chaind tx staking create-validator --yes \
--amount 1000000000tkyve \
--moniker <MONIKER>\
--commission-rate "0.10" \
--commission-max-rate "0.20" \
--commission-max-change-rate "0.01" \
--min-self-delegation "1" \
--pubkey "$(./chaind tendermint show-validator)" \
--from <your key name>\
--chain-id korellia -y
这样你的验证人节点就跑起来了
可以通过浏览器查看状态: https://explorer.kyve.network/korellia/staking
目前测试还没宣布有奖励,先跑起来再说
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK