Update new-titan.sh

This commit is contained in:
smeb y 2024-06-28 22:23:40 +08:00 committed by GitHub
parent 0d2392240e
commit c808f5178c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,6 +120,15 @@ function install_node() {
pm2 start titand -- start && pm2 save && pm2 startup pm2 start titand -- start && pm2 save && pm2 startup
# 下载快照
titand tendermint unsafe-reset-all --home $HOME/.artelad --keep-addr-book
curl https://snapshots.dadunode.com/titan/titan_latest_tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.titan/data
mv $HOME/.titan/priv_validator_state.json.backup $HOME/.titan/data/priv_validator_state.json
# 使用 PM2 启动节点进程
pm2 restart artelad
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量 ===========================' echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量 ==========================='