Update Artela.sh

This commit is contained in:
smeb y 2024-05-12 13:53:09 +08:00 committed by GitHub
parent b9cf750f16
commit 85a12393c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,7 +124,9 @@ function install_node() {
pm2 start artelad -- start && pm2 save && pm2 startup
# 下载快照
curl -L https://smeby.fun/artelad_snapshots.tar.lz4 | tar -I lz4 -xf - -C $HOME/.artelad/data
SNAP_NAME=$(curl -s https://ss-t.artela.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.artela.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.artelad
mv $HOME/.artelad/priv_validator_state.json.backup $HOME/.artelad/data/priv_validator_state.json
# 使用 PM2 启动节点进程