From 9c970700119018c1eba15b3707ed541901dbba1b Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Fri, 17 May 2024 11:33:16 +0800 Subject: [PATCH] Update 0g.sh --- 0g.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/0g.sh b/0g.sh index fc6941d..4cf0b33 100644 --- a/0g.sh +++ b/0g.sh @@ -208,11 +208,10 @@ function install_storage_node() { # 克隆仓库 -git clone https://github.com/0glabs/0g-storage-node.git +git clone -b v0.2.0 https://github.com/0glabs/0g-storage-node.git #进入对应目录构建 cd 0g-storage-node -git submodule update --init # 构建代码 cargo build --release @@ -223,10 +222,8 @@ cd run read -p "请输入你想导入的EVM钱包私钥,不要有0x: " minerkey -sed -i "s/miner_id = \"\"/miner_id = \"$(openssl rand -hex 32)\"/" config.toml sed -i "s/miner_key = \"\"/miner_key = \"$minerkey\"/" config.toml - - +sed -i 's|blockchain_rpc_endpoint = "https://rpc-testnet.0g.ai"|blockchain_rpc_endpoint = "https://0g-evm-rpc.stakeme.pro"|g' config.toml screen -dmS zgs_node_session ../target/release/zgs_node --config config.toml