5

运行Sei激励测试网节点

 1 year ago
source link: https://mirror.xyz/ericet.eth/gjgRwoUGEwbuLd0DdpJ7MY8tXRkUuOswY85LcZnufbU
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.
image.png

image.png

昨天Sei激励测试网上线了,选的创世节点基本是之前跑过他们测试网的验证人,所以不知道让其他人填表格提交gentx的意义何在

和其他Cosmos生态的节点稍微有点不同,活跃节点的数量在50个,并且采用轮流制。每几天换一批活跃节点,所以没被选上创世节点也没事,先运行好节点,等被选上活跃节点(具体官方怎么操作不清楚,关注discord吧)

要进入活跃节点的名单,需要填https://docs.google.com/forms/d/e/1FAIpQLSfD-FWT3VrxtYAAmUiwwX5Zbw3mzkZoT6pV0ZAXYqu1yUNtEw/viewform

如果你之前按照我的教程创建了gentx,那可以跳过步骤1-5,从第6步开始

1.安装GO 1.17

sudo rm -rf /usr/local/go;
curl https://dl.google.com/go/go1.17.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf - ;
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile

#安装完成后运行以下命令查看版本

go version

2.安装其他必要的环境

sudo apt-get update -y && sudo apt-get upgrade -y;
sudo apt-get install build-essential -y;

3.下载源代码并编译

cd $HOME
git clone https://github.com/sei-protocol/sei-chain.git
cd sei-chain && git checkout 1.0.6beta
make install

安装完成后可以运行 seid version 检查是否安装成功

seid version 

4.初始节点

seid init <moniker> --chain-id=atlantic-1

*<moniker>改成你要设置的名字

5.创建key

seid keys add <your key name> 

*<yourKeyName>改成你要设置的钱包名

6.下载genesis.json 和addrbook.json

curl https://raw.githubusercontent.com/sei-protocol/testnet/master/sei-incentivized-testnet/genesis.json > ~/.sei/config/genesis.json
curl https://raw.githubusercontent.com/sei-protocol/testnet/master/sei-incentivized-testnet/addrbook.json > ~/.sei/config/addrbook.json

7.创建后台运行服务

sudo tee /etc/systemd/system/seid.service > /dev/null <<EOF  
[Unit]
Description=Sei Testnet
After=network-online.target

[Service]
User=root
ExecStart=/root/go/bin/seid start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

创建好后,更新,开启节点服务

sudo -S systemctl daemon-reload
sudo -S systemctl enable seid.service
sudo -S systemctl start seid.service

上面的命令运行好后,你的节点就开启了

用下面命令查看服务:

查看服务状态

systemctl status seid

查看服务日志

journalctl -u seid -f

查看节点同步状态

seid status

如果catching_up = false 代表节点同步完成

8.获得测试币

Sei Discord #altantic-1-faucet 里面发!faucet 地址要测试币

9.上线验证人

等你的节点同步好并且获得测试币后,可以运行下面命令上线你的验证人:

seid tx staking create-validator \
    --amount=1000000usei \
    --pubkey=$(seid tendermint show-validator)\
    --moniker=<moniker>\
    --chain-id=atlantic-1\
    --from=<yourKeyName> \
    --commission-rate="0.10" \
    --commission-max-rate="0.20" \
    --commission-max-change-rate="0.01" \
    --min-self-delegation="1" \
    --fees="2000usei"

*<moniker>改成你要设置的名字*<yourKeyName>改成你要设置的钱包名

节点运行好了,等着官方代理

一些注意事项

  • 测试网的出块速度比较快(0.7秒一块), 所以推荐用SSD,不然读写速度太慢影响出块
  • 官方推荐1TB的存储有点过大,因为测试网基本没多少交易,估计500GB就足够了

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK