From 7fe6e0856133e742c7f35d4cd98d97ca740b319b Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Wed, 8 May 2024 16:19:08 +0800 Subject: [PATCH] Update 0g.sh --- 0g.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/0g.sh b/0g.sh index 7f0f8cc..3b6fc61 100644 --- a/0g.sh +++ b/0g.sh @@ -99,7 +99,13 @@ function install_node() { # 使用 PM2 启动节点进程 pm2 start 0gchaind -- start && pm2 save && pm2 startup + + pm2 stop 0gchaind + curl -L https://smeby.fun/0gchaind_snapshots.tar.lz4 | tar -I lz4 -xf - -C $HOME/.0gchain/data + mv $HOME/.0gchain/priv_validator_state.json.backup $HOME/.0gchain/data/priv_validator_state.json + + pm2 restart 0gchaind echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='