Update Artela.sh

This commit is contained in:
smeb y 2024-04-30 10:07:36 +08:00 committed by GitHub
parent a1f97f4c1b
commit d569af225c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,8 @@ function install_node() {
source $HOME/.bash_profile source $HOME/.bash_profile
# 下载快照 # 下载快照
curl https://snapshots-testnet.nodejumper.io/artela-testnet/artela-testnet_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad 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 mv $HOME/.artelad/priv_validator_state.json.backup $HOME/.artelad/data/priv_validator_state.json
# 使用 PM2 启动节点进程 # 使用 PM2 启动节点进程