Update 0g.sh
This commit is contained in:
parent
3a132df66d
commit
b441f7474a
5
0g.sh
5
0g.sh
@ -107,10 +107,9 @@ function install_node() {
|
|||||||
pm2 start 0gchaind -- start && pm2 save && pm2 startup
|
pm2 start 0gchaind -- start && pm2 save && pm2 startup
|
||||||
|
|
||||||
pm2 stop 0gchaind
|
pm2 stop 0gchaind
|
||||||
SNAP_NAME=$(curl -s https://testnet.anatolianteam.com/0g/ | egrep -o ">zgtendermint_16600-1.*\.tar.lz4" | tr -d ">")
|
0gchaind tendermint unsafe-reset-all --home $HOME/.0gchain --keep-addr-book
|
||||||
curl -L https://testnet.anatolianteam.com/0g/${SNAP_NAME} | tar -I lz4 -xf - -C $HOME/.0gchain
|
curl https://snapshots-testnet.nodejumper.io/0g-testnet/0g-testnet_latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.0gchain
|
||||||
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json
|
mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json
|
||||||
|
|
||||||
pm2 restart 0gchaind
|
pm2 restart 0gchaind
|
||||||
|
|
||||||
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='
|
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='
|
||||||
|
Loading…
Reference in New Issue
Block a user