From e00df22cf9e51794c38d902ae174cdf08e491f78 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Sat, 22 Jun 2024 11:57:37 +0800 Subject: [PATCH] Update 0g.sh --- 0g.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/0g.sh b/0g.sh index df2cc98..f683c7b 100644 --- a/0g.sh +++ b/0g.sh @@ -210,7 +210,7 @@ function install_storage_node() { # 克隆仓库 -git clone -b v0.3.0 https://github.com/0glabs/0g-storage-node.git +git clone -b v0.3.1 https://github.com/0glabs/0g-storage-node.git #进入对应目录构建 cd 0g-storage-node @@ -226,6 +226,7 @@ cd run read -p "请输入你想导入的EVM钱包私钥,不要有0x: " minerkey sed -i "s/miner_key = \"\"/miner_key = \"$minerkey\"/" config.toml +sed -i 's/log_sync_start_block_number = [0-9]*/log_sync_start_block_number = 0/' config.toml screen -dmS zgs_node_session ../target/release/zgs_node --config config.toml