side

奖励节点4个月前发布 admin
21 0
奖励节点 特价vps

 安装运行节点

可以下载运行下面脚本一键执行安装,也可以逐行复制到终端执行

# 下载编译
git clone https://github.com/sideprotocol/side.git
cd side
git checkout v0.6.0
make install
# 初始化配置文件
sided init <你的节点名称> –chain-id=side-testnet-2 –home ~/.side
# 下载genesis.json
wget https://raw.githubusercontent.com/sideprotocol/testnet/main/side-testnet-2/genesis.json -O $HOME/.side/config/genesis.json
# 设置 seeds
cd ~/.side/config
SEED=d9911bd0eef9029e8ce3263f61680ef4f71a87c4@13.230.121.124:26656,693bdfec73a81abddf6f758aa49321de48456a96@13.231.67.192:26656
sed -i s|^seeds *=.*|seeds = “$SEED“| config.toml
# 设置最小 gas price
sed -i s|^minimum-gas-prices *=.*|minimum-gas-prices = “0.0005uside”|g app.toml
# 设置端口为 146xx
sed -i -e s%^proxy_app = \”tcp://127.0.0.1:26658\”%proxy_app = \”tcp://127.0.0.1:14658\”%; s%^laddr = \”tcp://127.0.0.1:26657\”%laddr = \”tcp://127.0.0.1:14657\”%; s%^pprof_laddr = \”localhost:6060\”%pprof_laddr = \”localhost:14660\”%; s%^laddr = \”tcp://0.0.0.0:26656\”%laddr = \”tcp://0.0.0.0:14656\”%; s%^prometheus_listen_addr = \”:26660\”%prometheus_listen_addr = \”:14666\”% config.toml
sed -i -e s%address = “localhost:9091″%address = “localhost:14691″%g \
-e s%address = “localhost:9090″%address = “localhost:14690″%g \
-e s%address = “tcp://localhost:1317″%address = “tcp://localhost:14617″%g app.toml
sided tendermint unsafe-reset-all
# 设置 system 服务
sudo tee /etc/systemd/system/sided.service > /dev/null << EOF
[Unit]
Description=side node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sided) start
Restart=on-failure
RestartSec=10
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
EOF
# 重新加载服务
sudo systemctl daemon-reload
sudo systemctl enable sided
# 启动服务&查看日志
systemctl start sided & journalctl -fu sided -o cat
# 查看同步状态
sided status -n tcp://127.0.0.1:14657 | jq

catching_up 变成 false 表示区块同步完成

目前区块高度为 #117350,从0开始同步可能需要两三个小时,需要下载快照的可以用下面这个教程:https://docs.nodesync.top/cosmos-testnet/side-protocol#id-2.-auto-install

2.2. 配置钱包

# 创建新钱包
sided keys add <钱包名称>

# 通过助记词导入
sided keys add <钱包名称> --recover

# 钱包列表
sided keys list

# 查询钱包余额
sided query bank balances <side地址> \
--node tcp://127.0.0.1:14657

2.3. 成为验证者

发送创建验证者交易

export wallet_name=<你的钱包名称>

sided tx staking create-validator \
--from=wallet_name \
--amount=1side \
--pubkey=$(sided tendermint show-validator)  \
--moniker="修改为你的节点名称" \
--chain-id="side-testnet-2" \
--commission-rate="0.1" \
--commission-max-rate="0.2" \
--commission-max-change-rate="0.05" \
--min-self-delegation="1000000" \
--fees="200uside" \
--node tcp://127.0.0.1:14657
-y

2.4. 查看验证者状态

进入 staking 页面搜索自己的验证者名称,点进去查看详细信息

© 版权声明
奖励节点

相关文章

暂无评论

暂无评论...