Update Artela.sh

This commit is contained in:
smeb y 2024-04-01 18:00:37 +08:00 committed by GitHub
parent 5ab578795f
commit e5688c28fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,6 +105,9 @@ function install_node() {
PEERS="b23bc610c374fd071c20ce4a2349bf91b8fbd7db@65.108.72.233:11656"
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.artelad/config/config.toml
# 下载快照
curl https://snapshots-testnet.nodejumper.io/artela-testnet/artela-testnet_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.artelad
# 使用 PM2 启动节点进程
pm2 start artelad -- start && pm2 save && pm2 startup