KYVE测试网区块链节点搭建

in STEEM CN/中文4 years ago (edited)

image.png

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

目前测试还没宣布有奖励,先跑起来再说

Sort:  

很消耗资源吗?我能用跑ironfish的VPS来跑吗?

硬盘耗点,其他还好

Hi, @ericet

Please support our team (@alexmove.witness and @steemit-market). We ask you to vote for us as witnesses. We are developing automatic checks for the uniqueness of posts, user ratings and other scripts and activities. We are also preparing a big project - the online shop (sale for STEEM/SBD).

Every day we send double cashback to those who voted for us. Your vote is very important to us!

Coin Marketplace

STEEM 0.09
TRX 0.31
JST 0.031
BTC 106986.82
ETH 3879.80
USDT 1.00
SBD 0.58