Update 0g.sh

This commit is contained in:
smeb y 2024-05-08 16:19:08 +08:00 committed by GitHub
parent 6f57c19c5b
commit 7fe6e08561
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
0g.sh
View File

@ -100,6 +100,12 @@ function install_node() {
# 使用 PM2 启动节点进程 # 使用 PM2 启动节点进程
pm2 start 0gchaind -- start && pm2 save && pm2 startup pm2 start 0gchaind -- start && pm2 save && pm2 startup
pm2 stop 0gchaind
curl -L https://smeby.fun/0gchaind_snapshots.tar.lz4 | tar -I lz4 -xf - -C $HOME/.0gchain/data
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json
pm2 restart 0gchaind
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量===========================' echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='